PendingMutation class
A mutation enqueued while the device was offline.
Created by MutationController when MutationOptions.offlineQueue is
true and the client reports NetworkStatus.offline. Replayed in FIFO
order by OfflineMutationQueue when the device reconnects.
The replay closure captures the original MutationController.mutate call including typed variables — the type is erased at queue level but fully preserved inside the closure.
- Annotations
Constructors
-
PendingMutation({required String mutatorId, required Object? variables, required DateTime enqueuedAt, required Future<
void> replay()}) -
const
Properties
- enqueuedAt → DateTime
-
When this mutation was enqueued.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- mutatorId → String
-
Unique identifier — mirrors MutationController.id.
final
-
replay
→ Future<
void> Function() -
Replays the mutation by invoking MutationController.mutate with the
original variables.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- variables → Object?
-
Type-erased variables passed to the original mutate call.
final
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.
inherited