SceneNode class

One node in the perception tree, parsed from inspector DiagnosticsNode JSON.

Constructors

SceneNode({required int depth, required int indexInParent, required String description, required String type, required String inspectorId, int? locationId, CreationLocation? creationLocation, String? widgetRuntimeType, String? textPreview, bool createdByLocalProject = false, bool stateful = false, bool hasChildren = false, String? glintId, List<SceneNode> children = const <SceneNode>[]})

Properties

axFrame ↔ ({double h, double w, double x, double y})?
Screen-space bounding box for native (iOS AX) nodes. Null for Flutter widget-tree nodes (those use VM geometry eval instead).
getter/setter pair
baseLabel → String
label with any generic suffix stripped: Radio<String> → Radio.
no setter
children ↔ List<SceneNode>
getter/setter pair
createdByLocalProject → bool
final
creationLocation → CreationLocation?
final
depth → int
0 for root; child = parent + 1.
final
description → String
Usually the widget runtime type; falls back to a framework-internal type name (e.g. _ElementDiagnosticableTreeNode) when the inspector emits one.
final
glintId ↔ String?
Glint's stable, unique, agent-facing id. Null until StableIdGenerator.assignIds runs over the tree.
getter/setter pair
hasChildren → bool
final
hashCode → int
The hash code for this object.
no setterinherited
indexInParent → int
-1 for root. Stable-id generator tiebreaker among siblings sharing a locationId.
final
inspectorId → String
Inspector handle ("inspector-N"). Valid only for the current inspector group; NOT stable across reads.
final
isNativeEnabled ↔ bool?
Whether the native element is enabled/interactive (from AX enabled).
getter/setter pair
isOffstage ↔ bool
True inside an offstage Offstage (non-active IndexedStack child or GoRouter shell branch). NaN/zero geometry, so excluded from addressable ids, scene rendering, and the hoistPage page selector.
getter/setter pair
isPlatformView → bool
True when this node is a platform-view widget (GoogleMap, WebView, etc.) whose element context rejects ModalRoute and geometry evals (RPCError 113).
no setter
label → String
Best single-word label: widgetRuntimeType when present, else description.
no setter
locationId → int?
Inspector source-location id — stable per source location across reads. Bedrock for stable-id generation but not unique on its own.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
stateful → bool
final
textPreview → String?
RenderParagraph-backed nodes only.
final
type → String
DiagnosticsNode type field — typically "_ElementDiagnosticableTreeNode".
final
widgetRuntimeType → String?
Some framework nodes carry the widget runtime type here instead of in description.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, Object?>
toString() → String
A string representation of this object.
inherited
walk() → Iterable<SceneNode>
Pre-order traversal of this subtree.

Operators

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