zip6<A, B, C, D, E, F, 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.
Example
Rx.zip6(
Stream.value('a'),
Stream.value('b'),
Stream.value('c'),
Stream.value('d'),
Stream.value('e'),
Stream.fromIterable(['f', 'dropped']),
(a, b, c, d, e, f) => a + b + c + d + e + f)
.listen(print); //prints 'abcdef'
Implementation
static Stream<T> zip6<A, B, C, D, E, F, T>(
Stream<A> streamA,
Stream<B> streamB,
Stream<C> streamC,
Stream<D> streamD,
Stream<E> streamE,
Stream<F> streamF,
T Function(A a, B b, C c, D d, E e, F f) zipper) =>
ZipStream.zip6(
streamA,
streamB,
streamC,
streamD,
streamE,
streamF,
zipper,
);