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