BlocProviderFamily<T extends BlocBase, A> constructor Null safety

BlocProviderFamily<T extends BlocBase, A>(
  1. T create(
    1. ProviderReference ref,
    2. A a
    ),
  2. {String? name}
)

A class that allows building a BlocProvider from an external parameter.

Implementation

BlocProviderFamily(
  T Function(ProviderReference ref, A a) create, {
  String? name,
}) : super(create, name);