TreeSelectionDefaultHandler<T> class
Default handler for tree node selection changes.
Manages selection state updates by toggling, adding, or setting selected nodes based on selection mode.
Example:
final handler = TreeSelectionDefaultHandler(nodes, (updated) {
setState(() => nodes = updated);
});
Constructors
-
TreeSelectionDefaultHandler(List<
TreeNode< nodes, ValueChanged<T> >List< onChanged)TreeNode< >T> > - Creates a TreeSelectionDefaultHandler.
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 selection state changes.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
call(
List< TreeNode< selectedNodes, bool multiSelect, bool selected) → voidT> > - Handles a selection change 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