changeStream method

  1. @override
StreamChannel<T> changeStream(
  1. Stream<T> change(
    1. Stream<T>
    )
)
override

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

Implementation

@override
StreamChannel<T> changeStream(Stream<T> Function(Stream<T>) change) =>
    StreamChannel.withCloseGuarantee(change(stream), sink);