FlatNode<T> class

A flattened representation of a tree node for virtualized rendering.

Contains all information needed to render a single row in a flat ListView, including depth, position flags, and ancestor "isLast" info for tree lines.

Constructors

FlatNode({required Node<T> node, required int depth, required bool isFirst, required bool isLast, required bool isRoot, required List<bool> ancestorIsLastFlags})
const

Properties

ancestorIsLastFlags List<bool>
For each ancestor depth level, whether that ancestor is the last child. Used to decide whether to draw a vertical continuation line at that depth. Index 0 = depth 0 ancestor, index 1 = depth 1 ancestor, etc.
final
depth int
Depth level (0 = root)
final
hashCode int
The hash code for this object.
no setterinherited
isFirst bool
Whether this node is the first child of its parent
final
isLast bool
Whether this node is the last child of its parent
final
isRoot bool
Whether this is a root-level node
final
node Node<T>
The original tree node
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

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