combine9<A, B, C, D, E, F, G, H, I> static method

AsyncValueBuilder combine9<A, B, C, D, E, F, G, H, I>(
  1. AsyncValue<A> asyncValue1,
  2. AsyncValue<B> asyncValue2,
  3. AsyncValue<C> asyncValue3,
  4. AsyncValue<D> asyncValue4,
  5. AsyncValue<E> asyncValue5,
  6. AsyncValue<F> asyncValue6,
  7. AsyncValue<G> asyncValue7,
  8. AsyncValue<H> asyncValue8,
  9. AsyncValue<I> asyncValue9, {
  10. required Widget onData(
    1. BuildContext context,
    2. A data1,
    3. B data2,
    4. C data3,
    5. D data4,
    6. E data5,
    7. F data6,
    8. G data7,
    9. H data8,
    10. I data9,
    ),
  11. Widget builder(
    1. BuildContext context,
    2. Widget child,
    3. A? data1,
    4. B? data2,
    5. C? data3,
    6. D? data4,
    7. E? data5,
    8. F? data6,
    9. G? data7,
    10. H? data8,
    11. I? data9,
    )?,
  12. ErrorBuilder? onError,
  13. WidgetBuilder? onLoading,
  14. WidgetBuilder? orElse,
})

Implementation

static AsyncValueBuilder combine9<A, B, C, D, E, F, G, H, I>(
  AsyncValue<A> asyncValue1,
  AsyncValue<B> asyncValue2,
  AsyncValue<C> asyncValue3,
  AsyncValue<D> asyncValue4,
  AsyncValue<E> asyncValue5,
  AsyncValue<F> asyncValue6,
  AsyncValue<G> asyncValue7,
  AsyncValue<H> asyncValue8,
  AsyncValue<I> asyncValue9, {
  required Widget Function(
    BuildContext context,
    A data1,
    B data2,
    C data3,
    D data4,
    E data5,
    F data6,
    G data7,
    H data8,
    I data9,
  ) onData,
  Widget Function(
    BuildContext context,
    Widget child,
    A? data1,
    B? data2,
    C? data3,
    D? data4,
    E? data5,
    F? data6,
    G? data7,
    H? data8,
    I? data9,
  )? builder,
  ErrorBuilder? onError,
  WidgetBuilder? onLoading,
  WidgetBuilder? orElse,
}) =>
    AsyncValueBuilder._(
      asyncValues: [
        asyncValue1,
        asyncValue2,
        asyncValue3,
        asyncValue4,
        asyncValue5,
        asyncValue6,
        asyncValue7,
        asyncValue8,
        asyncValue9
      ],
      onData: (context, data) => onData(
        context,
        data[0] as A,
        data[1] as B,
        data[2] as C,
        data[3] as D,
        data[4] as E,
        data[5] as F,
        data[6] as G,
        data[7] as H,
        data[8] as I,
      ),
      builder: (context, child, data) => builder != null
          ? builder.call(
              context,
              child,
              data[0] as A?,
              data[1] as B?,
              data[2] as C?,
              data[3] as D?,
              data[4] as E?,
              data[5] as F?,
              data[6] as G?,
              data[7] as H?,
              data[8] as I?,
            )
          : child,
      onError: onError,
      onLoading: onLoading,
      orElse: orElse,
    );