BlocProvider<T extends Bloc> constructor

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

Implementation

BlocProvider({
  super.key,
  required super.child,
  required T Function() create,
}) : value = create();