NullStreamSink<T> constructor

NullStreamSink<T>({Future done })

Creates a null sink.

If done is passed, it's used as the Sink.done future. Otherwise, a completed future is used.

Implementation

NullStreamSink({Future done}) : done = done ?? Future.value();