providerDidFail method

void providerDidFail(
  1. ProviderBase<Object?> provider,
  2. Object error,
  3. StackTrace stackTrace,
  4. ProviderContainer container,
)

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

Implementation

void providerDidFail(
  ProviderBase<Object?> provider,
  Object error,
  StackTrace stackTrace,
  ProviderContainer container,
) {}