listen<T> method

StreamSubscription<T> listen<T>(
  1. Stream<T> stream,
  2. void onData(
    1. T
    )
)

Implementation

StreamSubscription<T> listen<T>(Stream<T> stream, void Function(T) onData) {
  StreamSubscription<T> s = stream.listen(onData);
  _subscriptions.add(s);
  return s;
}