NotifierProvider<NotifierT extends Notifier<ValueT>, ValueT> constructor

NotifierProvider<NotifierT extends Notifier<ValueT>, ValueT>(
  1. NotifierT _createNotifier(), {
  2. String? name,
  3. Iterable<ProviderOrFamily>? dependencies,
  4. bool isAutoDispose = false,
  5. Retry? retry,
})

A provider that exposes a synchronous Notifier.

NotifierProvider can be considered as a mutable Provider.

Implementation

NotifierProvider(
  this._createNotifier, {
  super.name,
  super.dependencies,
  super.isAutoDispose = false,
  super.retry,
}) : super(
       $allTransitiveDependencies: computeAllTransitiveDependencies(
         dependencies,
       ),
       from: null,
       argument: null,
     );