TreeNode<T> class

The data type for tree nodes.

The type T is the value type that will be used by the nodeBuilder passed to the ExpandableTree Widget When subNodes is an empty list the "node" is rendered as a Leaf node. Transport data payload in value.

Constructors

TreeNode(T value, {List<TreeNode<T>> subNodes = const []})
Construct a TreeNode with optional List of children value payload of the node subNodes list of Child nodes
const

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
subNodes List<TreeNode<T>>
final
value → T
final

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