listen abstract method

StreamSubscription<T> listen(
  1. dynamic callback
)

Calls callback whenever there is an event. Returns a StreamSubscription to control the listening.

Implementation

StreamSubscription<T> listen(/* Callback | ValueCallback */ callback);