ProviderObserver class Null safety
An object that listens to the changes of a ProviderContainer.
This can be used for logging or making devtools.
ProviderBase provider, Object? value, ProviderContainer container) → void
A provider was initialized, and the value exposed is
ProviderBase provider, ProviderContainer containers) → void
- A provider was disposed
ProviderBase provider, Object? previousValue, Object? newValue, ProviderContainer container) → void
- Called my providers when they emit a notification. [...]
Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
ProviderBase provider, Object error, StackTrace stackTrace, ProviderContainer container) → void
- A provider emitted an error, be it by throwing during initialization or by having a Future/Stream emit an error
) → String
A string representation of this object. [...]