TreeItemExpandDefaultHandler<T> class

Default handler for tree item expand/collapse operations.

Manages the expansion state of tree nodes when users interact with expand/collapse controls.

Example:

final handler = TreeItemExpandDefaultHandler(nodes, targetNode, (updated) {
  setState(() => nodes = updated);
});

Constructors

TreeItemExpandDefaultHandler(List<TreeNode<T>> nodes, TreeNode<T> target, ValueChanged<List<TreeNode<T>>> onChanged)
Creates a TreeItemExpandDefaultHandler.

Properties

hashCode int
The hash code for this object.
no setterinherited
nodes List<TreeNode<T>>
The current list of tree nodes.
final
onChanged ValueChanged<List<TreeNode<T>>>
Callback when expansion state changes.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
target TreeNode<T>
The target node to expand or collapse.
final

Methods

call(bool expanded) → void
Handles an expand/collapse event.
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