Mutation<TData, TVariables, TOptimistic> class final

One concrete mutation execution.

Constructors

Mutation({required QueryClient client, required MutationCache cache, required MutationOptions<TData, TVariables, TOptimistic> options, MutationState<TData, TVariables, TOptimistic>? state})
Creates one concrete mutation execution.

Properties

cache → MutationCache
The cache that owns this mutation.
final
client → QueryClient
The client executing this mutation.
final
hashCode → int
The hash code for this object.
no setterinherited
options → MutationOptions<TData, TVariables, TOptimistic>
The mutation definition.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
state ↔ MutationState<TData, TVariables, TOptimistic>
The latest execution state.
getter/setter pair

Methods

continueExecution() → Future<TData>
Continues a restored paused mutation.
destroy() → void
Stops timers and releases observers.
execute(TVariables variables) → Future<TData>
Starts execution or returns the active execution.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
subscribe(void listener(MutationState<TData, TVariables, TOptimistic> state)) → QueryDispose
Subscribes to execution state changes.
toString() → String
A string representation of this object.
inherited

Operators

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