onStream<S> method
Triggers the callback
when stream
triggers an event. The stream
must be a broadcast stream, since it might be shared among multiple
subscriptions.
Implementation
void onStream<S>(Stream<S> stream, Callback1<S> callback) =>
onStreamProvider<S>(() => stream, callback);