consec4<A, B, C, D, R> function
Maps four synchronous or asynchronous values to a single value.
Implementation
FutureOr<R> consec4<A, B, C, D, R>(
FutureOr<A> a,
FutureOr<B> b,
FutureOr<C> c,
FutureOr<D> d,
FutureOr<R> Function(A a, B b, C c, D d) callback, {
void Function(Object e)? onError,
}) {
return consecList<R>(
[a, b, c, d],
(items) => callback(
items[0] as A,
items[1] as B,
items[2] as C,
items[3] as D,
),
);
}