RgaNode<T> class
A single element of an RgaList, identified by its (replicaId, counter)
pair and anchored after its origin element.
Deleted elements become tombstones (kept so later inserts anchored to them still order correctly); compact them by snapshotting the visible value into a fresh list when your app persists a checkpoint.
Constructors
Properties
- counter → int
-
The Lamport counter at creation time (unique per replica).
final
- deleted → bool
-
Whether this element has been removed (tombstoned).
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String
-
The globally unique element id.
no setter
- origin → String?
-
The id of the element this one was inserted after (
null= list head).final -
props
→ List<
Object?> -
The list of properties that will be used to determine whether
two instances are equal.
no setter
- replicaId → String
-
The replica that created this element.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- stringify → bool?
-
If set to
true, thetoStringmethod will be overridden to output this instance'sprops.no setterinherited - value → T
-
The element payload.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
tombstone(
) → RgaNode< T> - Returns a tombstoned copy of this node.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited