MutationResolved<T> class
The mutation hit a server-side conflict (SyncacheConflictException thrown from Mutation.send) and the configured ConflictResolver produced the final value.
The mutation is not retried and its outbox record is removed: the conflict is considered settled. resolvedValue is what the resolver returned — it (with any mutations queued behind it re-applied) is the value now in the cache.
switch (await handle.outcome) {
case MutationResolved(:final resolvedValue):
print('Merged; final value: $resolvedValue');
case MutationSuccess():
// ...
}
- Inheritance
-
- Object
- MutationOutcome<
T> - MutationResolved
Constructors
- MutationResolved(T resolvedValue, {bool wasConflict = true})
-
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- resolvedValue → T
-
The value produced by the ConflictResolver for this mutation.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- wasConflict → bool
-
Whether this outcome originates from a conflict. Syncache only settles
MutationResolved for resolved conflicts today, so this is always
true; the flag keeps outcome handling uniform for future resolution paths.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