MutationUpdated class final Advanced

A mutation's state changed. Emitted for every dispatched MutationAction — pending, success, error, pause, continue and the rest. TanStack Query calls this the updated event.

Inheritance

Constructors

MutationUpdated(Mutation<Object?, Object?, Object?> mutation, MutationAction action)
Creates the event for mutation, carrying the action that changed it.
const

Properties

action → MutationAction
The transition that produced the mutation's new state. Sealed, so a listener can switch over it exhaustively.
final
hashCode → int
The hash code for this object.
no setterinherited
mutation → Mutation<Object?, Object?, Object?>
The mutation the event is about, with its type arguments erased — a cache listener sees every mutation there is.
finalinherited
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