TreeItem<T> class

Inheritance

Constructors

TreeItem({required T data, List<TreeNode<T>> children = const [], bool expanded = false, bool selected = false})

Properties

children → List<TreeNode<T>>
final
data → T
final
expanded → bool
final
hashCode → int
The hash code for this object.
no setteroverride
leaf → bool
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
selected → bool
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
override
updateChildren(List<TreeNode<T>> children) → TreeItem<T>
override
updateState({bool? expanded, bool? selected}) → TreeItem<T>
override

Operators

operator ==(Object other) → bool
The equality operator.
override