mergeAsyncValues6<R, A, B, C, D, E, F> function
- AsyncValue<
A> a, - AsyncValue<
B> b, - AsyncValue<
C> c, - AsyncValue<
D> d, - AsyncValue<
E> e, - AsyncValue<
F> f, - R callback(
- A,
- B,
- C,
- D,
- E,
- F,
Merges six async values into one async value using the provided
callback function.
Implementation
AsyncValue<R> mergeAsyncValues6<R, A, B, C, D, E, F>(
AsyncValue<A> a,
AsyncValue<B> b,
AsyncValue<C> c,
AsyncValue<D> d,
AsyncValue<E> e,
AsyncValue<F> f,
R Function(A, B, C, D, E, F) callback,
) {
final merged = mergeAsyncValues5<List, A, B, C, D, E>(
a,
b,
c,
d,
e,
(a, b, c, d, e) => [a, b, c, d, e],
);
return merged.mergeWith<F, R>(
f,
(list, f) => callback(list[0], list[1], list[2], list[3], list[4], f),
);
}