StreamForward<T> extension

Helper for forwarding events of one Stream to another.

on

Methods

forward(StreamController<T> controller, {bool cancelOnError = false, bool closeWhenDone = true}) Future<void>
Forwards all events and errors to controller, handling cases where controller is independently closed before this finishes.