Tree<T> class Null safety

Constructors

Tree(T rootValue)

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
root TreeElement<T>?
read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

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>?
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
populateFromList(List<T> elements, T getParent(T child)) → void
toString() String
A string representation of this object. [...]
override

Operators

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