LeafRecord class final

Marks the active leaf of the tree after a branch navigation.

Ported from pi's LeafEntry. Appended by the storage when the session moves to a different branch; targetId is the new leaf (or null for the tree root).

Inheritance

Constructors

LeafRecord({required String id, required String? parentId, required DateTime timestamp, String? targetId})
Creates a LeafRecord.
const

Properties

hashCode → int
The hash code for this object.
no setterinherited
id → String
Unique record id (short random id generated by the storage).
finalinherited
parentId → String?
Id of the parent record, or null for a tree root.
finalinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
targetId → String?
The new active leaf, or null for the tree root.
final
timestamp → DateTime
When the record was created.
finalinherited
type → String
The type discriminator written to JSON (pi's type field).
no setteroverride

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
payloadJson() → Map<String, dynamic>
Type-specific fields merged into toJson by subclasses.
override
toJson() → Map<String, dynamic>
Serializes to a JSON map with the type discriminator (pi shape).
inherited
toString() → String
A string representation of this object.
inherited

Operators

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