combine7<A, B, C, D, E, F, G> static method
AsyncValueBuilder
combine7<A, B, C, D, E, F, G>(
- AsyncValue<
A> asyncValue1, - AsyncValue<
B> asyncValue2, - AsyncValue<
C> asyncValue3, - AsyncValue<
D> asyncValue4, - AsyncValue<
E> asyncValue5, - AsyncValue<
F> asyncValue6, - AsyncValue<
G> asyncValue7, { - required Widget onData(
- BuildContext context,
- A data1,
- B data2,
- C data3,
- D data4,
- E data5,
- F data6,
- G data7,
- Widget builder(
- BuildContext context,
- Widget child,
- A? data1,
- B? data2,
- C? data3,
- D? data4,
- E? data5,
- F? data6,
- G? data7,
- ErrorBuilder? onError,
- WidgetBuilder? onLoading,
- WidgetBuilder? orElse,
Implementation
static AsyncValueBuilder combine7<A, B, C, D, E, F, G>(
AsyncValue<A> asyncValue1,
AsyncValue<B> asyncValue2,
AsyncValue<C> asyncValue3,
AsyncValue<D> asyncValue4,
AsyncValue<E> asyncValue5,
AsyncValue<F> asyncValue6,
AsyncValue<G> asyncValue7, {
required Widget Function(
BuildContext context,
A data1,
B data2,
C data3,
D data4,
E data5,
F data6,
G data7,
) onData,
Widget Function(
BuildContext context,
Widget child,
A? data1,
B? data2,
C? data3,
D? data4,
E? data5,
F? data6,
G? data7,
)? builder,
ErrorBuilder? onError,
WidgetBuilder? onLoading,
WidgetBuilder? orElse,
}) =>
AsyncValueBuilder._(
asyncValues: [
asyncValue1,
asyncValue2,
asyncValue3,
asyncValue4,
asyncValue5,
asyncValue6,
asyncValue7
],
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,
),
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?,
)
: child,
onError: onError,
onLoading: onLoading,
orElse: orElse,
);