combine5<A, B, C, D, E, R> static method
Constructs a CombineLatestStream from 5 Streams
where combiner
is used to create a new event of type R
, based on the
latest events emitted by the provided Streams.
Implementation
static CombineLatestStream<dynamic, R> combine5<A, B, C, D, E, R>(
Stream<A> streamA,
Stream<B> streamB,
Stream<C> streamC,
Stream<D> streamD,
Stream<E> streamE,
R Function(A a, B b, C c, D d, E e) combiner,
) =>
CombineLatestStream<dynamic, R>(
[
streamA,
streamB,
streamC,
streamD,
streamE
],
(List<dynamic> values) {
return combiner(
values[0] as A,
values[1] as B,
values[2] as C,
values[3] as D,
values[4] as E,
);
},
);