TreeViewNode<T> class
A data structure for configuring children of a TreeView.
A TreeViewNode.content
can be of any type T
, but must correspond with
the same type of the TreeView.
Getters for depth, parent and isExpanded are managed by the TreeView's state.
Constructors
-
TreeViewNode(T content, {List<
TreeViewNode< ? children, bool expanded = false})T> > - Creates a TreeViewNode instance for use in a TreeView.
Properties
-
children
→ List<
TreeViewNode< T> > -
Other
TreeViewNode
s that this node will be parent to.no setter - content → T
-
The subject matter of the node.
no setter
- depth → int?
-
The number of parent nodes between this node and the root of the tree.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- isExpanded → bool
-
Whether or not this node is expanded in the tree.
no setter
-
parent
→ TreeViewNode<
T> ? -
The parent TreeViewNode of this node.
no setter
- 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.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited