bind method Null safety
Transforms the events sent to and emitted by
Creates a new channel. When events are passed to the returned channel's
sink, the transformer will transform them and pass the transformed
channel.sink. When events are emitted from the
channel.straem, the transformer will transform them and pass the
transformed versions to the returned channel's stream.
StreamChannel<S> bind(StreamChannel<T> channel) => StreamChannel<S>.withCloseGuarantee( channel.stream.transform(_streamTransformer), _sinkTransformer.bind(channel.sink));