fromStream<T> method

StreamListenableList<T> fromStream<T>(
  1. Stream<T> stream,
  2. {List<T> initial,
  3. dynamic listen(
    1. ListenableList<T> self,
    2. T
    )}
)

Implementation

static StreamListenableList<T> fromStream<T>(
  final Stream<T> stream, {
  final List<T> initial,
  final Function(ListenableList<T> self, T) listen,
}) {
  return StreamListenableList(stream, initial: initial, listen: listen);
}