AutoDisposeProviderReference class abstract
A ProviderReference for providers that are automatically destroyed when no-longer used.
The difference with ProviderReference is that it has an extra maintainState property, to help determine if the state can be destroyed or not.
- Inheritance
-
- Object
- ProviderReference
- AutoDisposeProviderReference
- Implementers
Constructors
Properties
- container → ProviderContainer
-
The ProviderContainer that this provider is associated with.
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- maintainState ↔ bool
-
Whether to destroy the state of the provider when all listeners are removed or not.
getter/setter pair
- mounted → bool
-
An utility to know if a provider was destroyed or not.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
onDispose(
void cb()) → void -
Adds a listener to perform an operation right before the provider is destroyed.
inherited
-
read<
T> (RootProvider< Object?, T> provider) → T -
Read the state associated with a provider, without listening to that provider.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
watch<
T> (RootProvider< Object?, T> provider) → T -
Obtains the state of a provider and cause the state to be re-evaluated
when that provider emits a new value.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited