NullStreamSink<T> constructor

NullStreamSink<T>({
  1. Future? done,
})

Creates a null sink.

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

Implementation

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