StateNotifierProviderOverrideMixin<Notifier extends StateNotifier<State>, State> mixin Null safety

Add overrideWithValue to AutoDisposeStateNotifierProvider

Superclass Constraints
Mixin Applications

Properties

dependencies List<ProviderOrFamily>?
The list of providers that this provider potentially depends on. [...]
late, final
notifier ProviderBase<Notifier>
read-only
originProvider ProviderBase<Notifier>
The provider that will be refreshed when calling ProviderContainer.refresh and that will be overridden when passed to ProviderScope. [...]
read-only, override
name String?
A custom label for providers. [...]
final, inherited
from Family<dynamic, dynamic, ProviderBase>?
If this provider was created with the .family modifier, from is the .family instance.
final, inherited
argument Object?
If this provider was created with the .family modifier, argument is variable used.
final, inherited
hashCode int
The hash code for this object. [...]
read-only, inherited
allTransitiveDependencies List<ProviderOrFamily>?
All the dependencies of a provider and their dependencies too.
late, final, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

overrideWithValue(Notifier value) Override
Overrides a provider with a value, ejecting the default behaviour. [...]
create(covariant Ref ref) → State
Initializes the state of a provider
updateShouldNotify(State previousState, State newState) bool
Called when a provider is rebuilt. Used for providers to not notify their listeners if the exposed value did not change.
createElement() ProviderElementBase<State>
An internal method that defines how a provider behaves.
select<Selected>(Selected selector(State value)) ProviderListenable<Selected>
Partially listen to a provider. [...]
inherited
toString() String
A string representation of this object. [...]
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited