A single-subscription stream where the contents are provided later.
It is generally recommended that you never create a
because you can just directly create a stream that doesn't do anything
until it's ready to do so.
This class can be used to create such a stream.
The same effect can be achieved by using a
and adding the stream using
addStream when both
the controller's stream is listened to and the source stream is ready.
This class attempts to shortcut some of the overhead when possible.
For example, if the stream is only listened to
after the source stream has been set,
the listen is performed directly on the source stream.
) → void
- Equivalent to setting an empty stream using setSourceStream. [...]
dynamic error, [StackTrace stackTrace] ) → void
Completes this to a stream that emits
errorand then closes. [...]
Stream< T>sourceStream ) → void
- Set a stream as the source of events for the StreamCompleter's stream. [...]
Invocation invocation ) → dynamic
Invoked when a non-existent method or property is accessed.
) → String
Returns a string representation of this object.
dynamic other ) → bool
The equality operator.