family<T, P> static method

StreamFamilyProvider<T, P> family<T, P>(
  1. StreamFamilyBuilder<T, P> stream, {
  2. String describeState(
    1. AsyncValue<T> state
    )?,
  3. String? debugLabel,
  4. bool debugVisibleInGraph = true,
})

A shorthand for StreamFamilyProvider.

Implementation

static StreamFamilyProvider<T, P> family<T, P>(
  StreamFamilyBuilder<T, P> stream, {
  String Function(AsyncValue<T> state)? describeState,
  String? debugLabel,
  bool debugVisibleInGraph = true,
}) {
  return StreamFamilyProvider(
    stream,
    describeState: describeState,
    debugLabel: debugLabel ?? 'StreamFamilyProvider<$T, $P>',
    debugVisibleInGraph: debugVisibleInGraph,
  );
}