listen method

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

    Calls callback with current value, when the value changes.

    Implementation

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