Tree<T> class

Contains a tree like structure

Constructors

Tree(T rootValue)
Creates a new tree with the given root value

Properties

hashCode int
The hash code for this object.
no setterinherited
root TreeElement<T>
The root element
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

firstWhereOrNull(bool test(T value)) → T?
Locates a specific value in this tree
flatten(bool isLeaf(T element)) List<T>
Lists all leafs of this tree Specify how to detect the leafs with isLeaf.
locate(T value) TreeElement<T>?
Finds the tree element for the given value.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
populateFromList(List<T> elements, T getParent(T child)) → void
Populates this tree from the given list of elements
toString() String
A string representation of this object.
override

Operators

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