listen method

StreamSubscription<Map<K, V>> listen(
  1. void onData(
    1. Map<K, V>
    ),
  2. {Function onError,
  3. void onDone(
      ),
    1. bool cancelOnError}
    )
    override

    Calls callback with current value, when the value changes.

    Implementation

    StreamSubscription<Map<K, V>> listen(void Function(Map<K, V>) onData,
            {Function onError, void Function() onDone, bool cancelOnError}) =>
        stream.listen(onData, onError: onError, onDone: onDone);