mutationReset method

void mutationReset(
  1. ProviderObserverContext context,
  2. Mutation<Object?> mutation
)

A mutation was reset.

This includes both manual calls to Mutation.reset and automatic resets.

Auto reset

By default, mutations are automatically reset to MutationIdle when they are no longer being listened to. This is similar to Riverpod's "auto-dispose" feature, for mutations.

You cam also manually reset a mutation to its initial state using Mutation.reset.

Implementation

void mutationReset(
  ProviderObserverContext context,
  Mutation<Object?> mutation,
) {}