consec8<A, B, C, D, E, F, G, H, R> function
Maps eight synchronous or asynchronous values to a single value.
Implementation
FutureOr<R> consec8<A, B, C, D, E, F, G, H, R>(
FutureOr<A> a,
FutureOr<B> b,
FutureOr<C> c,
FutureOr<D> d,
FutureOr<E> e,
FutureOr<F> f,
FutureOr<G> g,
FutureOr<H> h,
FutureOr<R> Function(A a, B b, C c, D d, E e, F f, G g, H h) callback, {
void Function(Object e)? onError,
}) {
return consecList<R>(
[a, b, c, d, e, f, g, h],
(items) => callback(
items[0] as A,
items[1] as B,
items[2] as C,
items[3] as D,
items[4] as E,
items[5] as F,
items[6] as G,
items[7] as H,
),
);
}