consec9<A, B, C, D, E, F, G, H, I, R> function

FutureOr<R> consec9<A, B, C, D, E, F, G, H, I, R>(
  1. FutureOr<A> a,
  2. FutureOr<B> b,
  3. FutureOr<C> c,
  4. FutureOr<D> d,
  5. FutureOr<E> e,
  6. FutureOr<F> f,
  7. FutureOr<G> g,
  8. FutureOr<H> h,
  9. FutureOr<I> i,
  10. FutureOr<R> callback(
    1. A a,
    2. B b,
    3. C c,
    4. D d,
    5. E e,
    6. F f,
    7. G g,
    8. H h,
    9. I i,
    ), {
  11. void onError(
    1. Object e
    )?,
})

Maps nine synchronous or asynchronous values to a single value.

Implementation

FutureOr<R> consec9<A, B, C, D, E, F, G, H, I, 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<I> i,
  FutureOr<R> Function(A a, B b, C c, D d, E e, F f, G g, H h, I i) callback, {
  void Function(Object e)? onError,
}) {
  return consecList<R>(
    [a, b, c, d, e, f, g, h, i],
    (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,
      items[8] as I,
    ),
  );
}