zip2<A, B, R> static method
Constructs a Stream which merges the specified Streams into a sequence using the given
zipper
Function, whenever all of the provided Streams have produced
an element at a corresponding index.
Implementation
static ZipStream<dynamic, R> zip2<A, B, R>(
Stream<A> streamOne,
Stream<B> streamTwo,
R Function(A a, B b) zipper,
) {
return ZipStream<dynamic, R>(
[streamOne, streamTwo],
(List<dynamic> values) => zipper(values[0] as A, values[1] as B),
);
}