MutationStatus enum Mutations

Where a mutation is in its life: idle before the first run, pending while running (or paused), then success or error until the next run or a reset.

Inheritance
Available extensions

Values

idle → const MutationStatus

Never run, or reset since. No data, no error, no variables.

pending → const MutationStatus

Running: onMutate and the mutation function are in flight, or the run is paused — offline, unfocused, or queued behind its scope. variables is set. It lasts until the run has finished, callbacks included: a mutation is still pending while the cache's and its options' onSuccess/onError and onSettled run, and until the future onSettled returns has completed. The per-call callbacks passed to mutate run after it.

success → const MutationStatus

The last run resolved; data holds what the mutation function returned.

error → const MutationStatus

The last run failed for good; error holds why.

Properties

hashCode → int
The hash code for this object.
no setterinherited
index → int
A numeric identifier for the enumerated value.
no setterinherited
name → String

Available on Enum, provided by the EnumName extension

The name of the enum value.
no setter
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.
inherited

Operators

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

Constants

values → const List<MutationStatus>
A constant List of the values in this enum, in order of their declaration.