sink property Null safety

StreamSink<T> sink
final

The sink for this completer.

When a destination sink is provided, events that have been passed to the sink will be forwarded to the destination.

Events can be added to the sink either before or after a destination sink is set.

Implementation

final StreamSink<T> sink = _CompleterSink<T>();