changeSink method Null safety

StreamChannel<T> changeSink(
  1. StreamSink<T> change(
    1. StreamSink<T>
    )
)

Returns a copy of this with sink replaced by change's return value.

Implementation

StreamChannel<T> changeSink(StreamSink<T> Function(StreamSink<T>) change);