WidgetTreeNode class
A node in WidgetTreeSnapshot
holding a single element and knows about
parent and children.
Constructors
- WidgetTreeNode({required Element element, required WidgetTreeNode? parent, required bool isOffstage})
- Creates an Element in the element tree.
Properties
-
children
→ List<
WidgetTreeNode> -
Gets the list of child nodes of this widget tree node.
no setter
- element → Element
-
The actual element in the element tree holding the widget of type
W
.final - hashCode → int
-
The hash code for this object.
no setterinherited
- isOffstage → bool
-
Whether the widget is offstage or onstage
final
- parent → WidgetTreeNode?
-
The parent widget tree node of this node.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
addChild(
WidgetTreeNode child) → void - Adds a child node to this widget tree node.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited