ProviderReference class Null safety
An object used by providers to interact with other providers and the life-cycles of the application.
- container → ProviderContainer
The ProviderContainer that this provider is associated with.
- hashCode → int
The hash code for this object. [...]
- mounted → bool
An utility to know if a provider was destroyed or not. [...]
- runtimeType → Type
A representation of the runtime type of the object.
Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
void cb()) → void
- Adds a listener to perform an operation right before the provider is destroyed. [...]
T>( RootProvider< Object?, T>provider) → T
- Read the state associated with a provider, without listening to that provider. [...]
) → String
A string representation of this object. [...]
T>( AlwaysAliveProviderBase< 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. [...]