NullStreamSink<T> constructor Null safety

NullStreamSink<T>(
  1. {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();