family<T, P> static method

ViewFamilyProvider<T, P> family<T, P>(
  1. ViewFamilyBuilder<T, P> builder, {
  2. String describeState(
    1. T state
    )?,
  3. String? debugLabel,
  4. bool debugVisibleInGraph = true,
})

A shorthand for ViewFamilyProvider.

Implementation

static ViewFamilyProvider<T, P> family<T, P>(
  ViewFamilyBuilder<T, P> builder, {
  String Function(T state)? describeState,
  String? debugLabel,
  bool debugVisibleInGraph = true,
}) {
  return ViewFamilyProvider(
    builder,
    describeState: describeState,
    debugLabel: debugLabel ?? 'ViewFamilyProvider<$T, $P>',
    debugVisibleInGraph: debugVisibleInGraph,
  );
}