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.
Values
- idle → const MutationStatus
-
Never run, or reset since. No data, no error, no variables.
- pending → const MutationStatus
-
Running:
onMutateand the mutation function are in flight, or the run is paused — offline, unfocused, or queued behind its scope.variablesis set. It lasts until the run has finished, callbacks included: a mutation is stillpendingwhile the cache's and its options'onSuccess/onErrorandonSettledrun, and until the futureonSettledreturns has completed. The per-call callbacks passed tomutaterun after it. - success → const MutationStatus
-
The last run resolved;
dataholds what the mutation function returned. - error → const MutationStatus
-
The last run failed for good;
errorholds 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.