combine9<A, B, C, D, E, F, G, H, I> static method
AsyncBuilder
combine9<A, B, C, D, E, F, G, H, I>(
- Future<
A> snapshot1, - Future<
B> snapshot2, - Future<
C> snapshot3, - Future<
D> snapshot4, - Future<
E> snapshot5, - Future<
F> snapshot6, - Future<
G> snapshot7, - Future<
H> snapshot8, - Future<
I> snapshot9, { - required Widget onData(
- BuildContext context,
- A data1,
- B data2,
- C data3,
- D data4,
- E data5,
- F data6,
- G data7,
- H data8,
- I data9,
- Widget builder(
- BuildContext context,
- Widget child,
- A? data1,
- B? data2,
- C? data3,
- D? data4,
- E? data5,
- F? data6,
- G? data7,
- H? data8,
- I? data9,
- ErrorBuilder? onError,
- WidgetBuilder? onLoading,
- WidgetBuilder? orElse,
Implementation
static AsyncBuilder combine9<A, B, C, D, E, F, G, H, I>(
Future<A> snapshot1,
Future<B> snapshot2,
Future<C> snapshot3,
Future<D> snapshot4,
Future<E> snapshot5,
Future<F> snapshot6,
Future<G> snapshot7,
Future<H> snapshot8,
Future<I> snapshot9, {
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,
}) =>
AsyncBuilder._(
snapshots: [
snapshot1,
snapshot2,
snapshot3,
snapshot4,
snapshot5,
snapshot6,
snapshot7,
snapshot8,
snapshot9
],
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,
);