LocalBatch class final

Scoped local editor provided only during SyncEngine.batch.

Reads see earlier edits in this batch. No live Replica, raw apply, storage or transport is exposed. Methods expire when the callback ends, before commit. Any failed edit poisons the whole batch even if its exception is caught. Mutation rules and delta generation remain owned by Replica and each CRDT.

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

addAllGSet(String crdtId, Iterable<Object?> elements) → void
addAllTwoPSet(String crdtId, Iterable<Object?> elements) → void
addGSet(String crdtId, Object? element) → void
addOrMapKey(String crdtId, String key) → void
addOrMapValue(String crdtId, String key, Object? value) → void
addOrSet(String crdtId, Object? element) → void
addTwoPSet(String crdtId, Object? element) → void
decrementPnCounter(String crdtId, [int amount = 1]) → void
incrementGCounter(String crdtId, [int amount = 1]) → void
incrementPnCounter(String crdtId, [int amount = 1]) → void
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
query(String address) → FieldQuery
Reads this batch's candidate; the result is isolated and not yet committed.
removeAllTwoPSet(String crdtId, Iterable<Object?> elements) → void
removeDelta(String key) → void
removeOrMapKey(String crdtId, String key) → void
removeOrSet(String crdtId, Object? element) → void
removeTwoPSet(String crdtId, Object? element) → void
setDelta(String key, Object? value) → void
toString() → String
A string representation of this object.
inherited
valueAt(String address) → Object?
writeMvRegister(String crdtId, Object? value) → void

Operators

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