Tree<T> class
Constructors
- Tree.new(T rootValue)
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
-
root
↔ TreeElement<
T> ? -
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
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 nonexistent 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