consec6<A, B, C, D, E, F, R> function
Maps six synchronous or asynchronous values to a single value.
Implementation
@pragma('vm:prefer-inline')
FutureOr<R> consec6<A, B, C, D, E, F, R>(
FutureOr<A> a,
FutureOr<B> b,
FutureOr<C> c,
FutureOr<D> d,
FutureOr<E> e,
FutureOr<F> f,
FutureOr<R> Function(A a, B b, C c, D d, E e, F f) callback, {
_TOnErrorCallback? onError,
bool eagerError = true,
_TOnCompleteCallback? onComplete,
}) {
return wait<R>(
[a, b, c, d, e, f],
(items) => callback(
items.elementAt(0) as A,
items.elementAt(1) as B,
items.elementAt(2) as C,
items.elementAt(3) as D,
items.elementAt(4) as E,
items.elementAt(5) as F,
),
onError: onError,
eagerError: eagerError,
onComplete: onComplete,
);
}