Tap<T> extension

A utility to chain extra behavior on a stream.

on

Methods

tap(void onValue(T)?, {void onError(Object, StackTrace)?, void onDone()?}) Stream<T>
Taps into this stream to allow additional handling on a single-subscriber stream without first wrapping as a broadcast stream.