family<T, P> static method
FutureFamilyProvider<T, P>
family<T, P>(
- FutureFamilyBuilder<
T, P> future, { - String describeState(
- AsyncValue<
T> state
- AsyncValue<
- String? debugLabel,
- bool debugVisibleInGraph = true,
A shorthand for FutureFamilyProvider.
Implementation
static FutureFamilyProvider<T, P> family<T, P>(
FutureFamilyBuilder<T, P> future, {
String Function(AsyncValue<T> state)? describeState,
String? debugLabel,
bool debugVisibleInGraph = true,
}) {
return FutureFamilyProvider(
future,
describeState: describeState,
debugLabel: debugLabel ?? 'FutureFamilyProvider<$T, $P>',
debugVisibleInGraph: debugVisibleInGraph,
);
}