BlocProvider<T extends BlocBase> constructor Null safety

BlocProvider<T extends BlocBase>(
  1. Create<T, ProviderReference> _create,
  2. {String? name}
)

Creates a Bloc and subscribes to it.

Implementation

BlocProvider(this._create, {String? name}) : super(name);