MutationIdle<ResultT> class final

The mutation is not running.

This is the default state of a mutation.

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.

A mutation can be in any of the following states:

Inheritance
Annotations
  • @publicInMutations

Properties

hasError → bool
Whether the mutation has completed with an error.
no setterinherited
hashCode → int
The hash code for this object.
no setteroverride
isIdle → bool
Whether the mutation is currently idle.
no setterinherited
isPending → bool
Whether the mutation is currently pending.
no setterinherited
isSuccess → bool
Whether the mutation has completed successfully.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
override

Operators

operator ==(Object other) → bool
The equality operator.
override