A, B, T> static method
Merges the specified streams into one stream sequence using the given zipper function whenever all of the stream sequences have produced an element at a corresponding index.
It applies this function in strict sequence, so the first item emitted by the new Stream will be the result of the function applied to the first item emitted by Stream #1 and the first item emitted by Stream #2; the second item emitted by the new ZipStream will be the result of the function applied to the second item emitted by Stream #1 and the second item emitted by Stream #2; and so forth. It will only emit as many items as the number of items emitted by the source Stream that emits the fewest items.
Rx.zip2( Stream.value('Hi '), Stream.fromIterable(['Friend', 'Dropped']), (a, b) => a + b) .listen(print); // prints 'Hi Friend'
static Stream<T> zip2<A, B, T>( Stream<A> streamA, Stream<B> streamB, T Function(A a, B b) zipper) => ZipStream.zip2(streamA, streamB, zipper);