TreeNode<T> class

Represents a tree node in the TreeView

Constructors

TreeNode(Key key, T data, [List<TreeNode<T>>? children, bool isExpanded = false])
Creates a tree node

Properties

children List<TreeNode<T>>
The children of this node
final
data → T
The data for this node
final
hashCode int
The hash code for this object.
no setterinherited
isExpanded ValueNotifier<bool>
Whether or not this node is expanded. Changing this value will cause the node's expander to animate open or closed
getter/setter pair
key Key
The unique key for this 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