sliver_tree/_node_store library
Internal: structural-component storage for TreeController.
Owns the nid registry plus every dense per-nid array that describes the
tree's structure (parent, children, depth, expansion, ancestors-expanded).
Pure data: no animation state, no visibility/order state, no
notifications. Visibility-related per-nid arrays
(_visibleSubtreeSizeByNid, the order buffer's reverse index) live on
the controller because they describe which nodes are currently rendered,
not the structure itself.
Classes
-
NodeStore<
TKey, TData> - Dense ECS-style storage for the tree's structural state.
Constants
- kNoParentNid → const int
- Sentinel value in nid-indexed parent arrays meaning "no parent" (root node) or "slot is free". Same sentinel is safe for both because a freed nid is never queried through NodeStore.nids.