Interview frequency: …
Short answer
A Stream suits a sequence of events or asynchronous data, while a notifier is simpler for a current synchronous state that needs direct reading.
Explanation
Choose a Stream when time, ordering, and errors are part of the contract, such as a socket or repository events. Do not turn a local boolean into a Stream without reason; the extra complexity needs a measurable benefit.
Common mistakes
- Creating a new Stream in every build.
- Forgetting to handle the loading, error, and done states.