BlocProvider<T extends Bloc<S> , S extends BlocState> constructor
BlocProvider<T extends Bloc<S> , S extends BlocState> ({})
Implementation
BlocProvider({
required T bloc,
Dispose<T>? dispose,
Widget? child,
Key? key,
}) : this._(
create: (_) => bloc,
dispose: dispose,
child: child,
key: key,
);