BlocProvider<T extends Bloc> constructor

const BlocProvider<T extends Bloc>({
  1. required T create(
    1. BuildContext,
    2. BlocEventChannel?
    ),
  2. required Widget child,
  3. Key? key,
})

create generates the bloc that will be provided.

Implementation

const BlocProvider({
  required this.create,
  required this.child,
  super.key,
});