didAddProvider method
A provider was initialized, and the value exposed is value
.
value
will be null
if the provider threw during initialization.
Implementation
@override
@mustCallSuper
void didAddProvider(
ProviderBase<Object?> provider,
Object? value,
ProviderContainer container,
) {
super.didAddProvider(provider, value, container);
if (!settings.enabled || !settings.printProviderAdded) {
return;
}
final accepted = settings.providerFilter?.call(provider) ?? true;
if (!accepted) {
return;
}
_talker.logCustom(
RiverpodAddLog(
provider: provider,
value: value,
settings: settings,
),
);
}