family<T, P> static method

FutureFamilyProvider<T, P> family<T, P>(
  1. FutureFamilyBuilder<T, P> future, {
  2. String describeState(
    1. AsyncValue<T> state
    )?,
  3. String? debugLabel,
  4. 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,
  );
}