didUpdateProvider method
void
didUpdateProvider()
Called by providers when they emit a notification.
newValue
will benull
if the provider threw during initialization.previousValue
will benull
if the previous build threw during initialization.
Implementation
@override
void didUpdateProvider(ProviderBase provider, Object? previousValue,
Object? newValue, ProviderContainer container) {
_storage.addSimpleLog(SimpleOverlayLog(
timestamp: DateTime.now(),
tag: provider.name ?? provider.runtimeType.toString(),
level: LogLevel.debug,
message: 'Updated: $newValue',
));
}