Stream<S> transform<S>(StreamTransformer<T, S> streamTransformer)

Chains this stream as the input of the provided StreamTransformer.

Returns the result of streamTransformer.bind itself.

The streamTransformer can decide whether it wants to return a broadcast stream or not.

Source

Stream<S> transform<S>(
    StreamTransformer<T, S > streamTransformer) {
  return streamTransformer.bind(this);
}