NodeVisualState class

Immutable snapshot of a node's visual state during a render cycle.

Passed to NodeBuilder so rows can style themselves (e.g., background color on selection).

Constructors

NodeVisualState({required bool isExpanded, required bool isSelected, required bool isFocused, required bool isHovered, required int depth, double? contentIndent})
Creates a visual state snapshot.
const

Properties

contentIndent → double?
Optional override for indentation width.
final
depth → int
The tree depth (0-based) used for indentation.
final
hashCode → int
The hash code for this object.
no setterinherited
isExpanded → bool
True if this node is a folder and is currently open.
final
isFocused → bool
True if this node is selected AND the tree has input focus.
final
isHovered → bool
True if the mouse pointer is currently hovering over this row.
final
isSelected → bool
True if this node is part of the active selection set.
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