providerDidFail method

  1. @override
void providerDidFail(
  1. ProviderObserverContext context,
  2. Object error,
  3. StackTrace stackTrace
)

A provider emitted an error, be it by throwing during initialization or by having a Future/Stream emit an error

Implementation

@override
void providerDidFail(
  ProviderObserverContext context,
  Object error,
  StackTrace stackTrace,
) {
  _logger.e('Provider ${context.provider.name ?? context.provider.runtimeType} failed', error, stackTrace);
}