TreeEntry<T extends Object> class

Used to store useful information about node in a tree.

Instances of this class are short lived, created by TreeController when traversing the tree; each traversal creates a new TreeEntry for each visited node with up to date values.

To make sure that tree views are always up to date make sure to call TreeController.rebuild to notify its listeners that the tree structure changed in some way and they should update their cached values.

Mixed in types

Constructors

TreeEntry({required TreeEntry<T>? parent, required T node, required int index, required int level, required bool isExpanded, required bool hasChildren, bool hasNextSibling = true})
Creates a TreeEntry.

Properties

hasChildren bool
Whether node has any child nodes.
final
hashCode int
The hash code for this object.
no setterinherited
hasNextSibling bool
Whether the node that owns this entry has another node after it at the same level.
no setter
index int
The index of node in the flat tree list that originated this entry.
final
isExpanded bool
The expansion state of node.
final
level int
The level of the node that owns this entry on the tree. Example:
final
node → T
The tree node that originated this entry.
final
parent TreeEntry<T>?
The direct parent of node on the tree, which was collected during traversal.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
skipIndentAndPaint bool
Whether this entry should skip being indented.
no setter

Methods

debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) String
A string representation of this object.
inherited
toStringShort() String
A brief description of this object, usually just the runtimeType and the hashCode.
inherited

Operators

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