When close is called, any stream (or streams) transformed by this transformer that haven't already completed or been cancelled will emit a done event and cancel their underlying subscriptions.
Note that unlike most StreamTransformers, each instance of StreamCloser has its own state (whether or not it's been closed), so it's a good idea to construct a new one for each use unless you need to close multiple streams at the same time.
Stream< T>stream) → Stream< T>
Transforms the provided
RS, RT>( ) → StreamTransformer< RS, RT>
StreamTransformer<RS, RT>view of this stream transformer. [...]inherited
) → Future< void>
- Closes all transformed streams. [...]
Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
) → String
A string representation of this object. [...]