listen method

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

    Calls callback with current value, when the value changes.

    Implementation

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