ListenExtension<T> extension
- on
Methods
-
listen(
void onData(T item), {void onError(dynamic, StackTrace? stack)?, void onDone()?}) → void Function() -
Continually pull data, and get notified on every value change.
Returns a
void Function()
that when called, cancel's the subscription.