list<T> static method

ZipStream<T, List<T>> list<T>(
  1. Iterable<Stream<T>> streams
)

Constructs a Stream which merges the specified streams into a List, containing values that were produced by the streams at a corresponding index.

Implementation

static ZipStream<T, List<T>> list<T>(Iterable<Stream<T>> streams) {
  return ZipStream<T, List<T>>(
    streams,
    (List<T> values) => values,
  );
}