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