NormalizedTreeInput<TKey, TItem> class

Immutable-by-convention normalized tree structure consumed by SyncedSliverTree's sync pass.

roots defines root order and childrenByParent stores sibling order for each parent, both as fully-built TreeNodes so the sync layer never re-materializes them.

Constructors

NormalizedTreeInput({required List<TreeNode<TKey, TItem>> roots, required Map<TKey, List<TreeNode<TKey, TItem>>> childrenByParent})
const

Properties

childrenByParent → Map<TKey, List<TreeNode<TKey, TItem>>>
final
hashCode → int
The hash code for this object.
no setterinherited
roots → List<TreeNode<TKey, TItem>>
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

childrenOf(TKey key) → List<TreeNode<TKey, TItem>>
Children of key in sibling order, empty when it has none.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

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