TreeElement<T> class

An Element in a Tree

Constructors

TreeElement(T value, TreeElement<T>? parent)
Creates a new tree element

Properties

children List<TreeElement<T>>?
Any sub nodes of this tree element
getter/setter pair
hasChildren bool
Checks of this tree element has children
no setter
hashCode int
The hash code for this object.
no setterinherited
parent TreeElement<T>?
The parent of this element, if known
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value → T
The value of the tree
final

Methods

addChild(T child) TreeElement<T>
Adds the child to this element
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
render(StringBuffer buffer, [String padding = '']) → void
Renders this tree element into the given buffer
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited