mutationError method

void mutationError(
  1. ProviderObserverContext context,
  2. Mutation<Object?> mutation,
  3. Object error,
  4. StackTrace stackTrace,
)

A mutation failed.

error is the error thrown by the mutation. stackTrace is the stack trace of the error.

mutation is strictly the same as ProviderObserverContext.mutation. It is provided as a convenience, as this life-cycle is guaranteed to have a non-null ProviderObserverContext.mutation.

Implementation

void mutationError(
  ProviderObserverContext context,
  Mutation<Object?> mutation,
  Object error,
  StackTrace stackTrace,
) {}