AutoDisposeBlocProvider<T extends BlocBase> constructor Null safety

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

Creates a Bloc and subscribes to it.

Implementation

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