StreamForward<T> extension
Helper for forwarding events of one Stream to another.
- on
-
- Stream<
T>
- Stream<
Methods
-
forward(
StreamController< T> controller, {bool cancelOnError = false, bool closeWhenDone = true}) → Future<void> -
Forwards all events and errors to
controller
, handling cases wherecontroller
is independently closed beforethis
finishes.