Scene class
One inspector group + its SceneNode tree. Dispose releases the VM-side id table.
Constructors
-
Scene.forTesting({required SceneNode root, List<
SceneNode> overlayRoots = const [], bool hasBarrierOverlay = false}) -
Minimal scene for unit tests — no live inspector required.
factory
- Scene.native({required SceneNode root})
-
Scene backed by native (OS AX) data rather than the Flutter widget tree.
Dispose is a no-op since there is no inspector group to release.
factory
Properties
- degenerate → bool
-
True when the summary tree held no app-created widgets: widget creation tracking is off or the pub root is still wrong. Consumers surface it as a warning.
final
- fullGroupName → String?
-
Group name to use when resolving overlay nodes. Overlay nodes' inspectorIds
are allocated in the full-tree group — using the summary group would fail
the Flutter inspector's cross-group object lookup.
no setter
-
glintIds
→ List<
String> -
Every addressable id on screen (offstage excluded).
no setter
- groupName → String
-
final
- hasBarrierOverlay → bool
-
True when a
ModalBarriersits between the topmost overlay and the base screen — the screen is painted but not hittable.final - hashCode → int
-
The hash code for this object.
no setterinherited
- isNative → bool
-
no setter
-
overlayRoots
→ List<
SceneNode> -
Overlay dialog entry nodes (from the full tree). Also appended to
root.childrenso findByGlintId and geometry resolution work without knowing the split.final - root → SceneNode
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- topBarrier → SceneNode?
-
The overlay entry of the topmost modal barrier (full-tree node, resolvable in fullGroupName); null without one.
final
Methods
-
addressableCandidates(
{int max = 5, SceneNode? within}) → List< SceneNode> - Returns up to 5 candidate nodes for enricher probing.
-
contentSignature(
) → String - Cheap fingerprint of what the agent can read: labels + text previews in tree order. Equal signatures across two reads mean nothing readable moved.
-
dispose(
) → Future< void> -
findByGlintId(
String glintId) → SceneNode? -
The node with
glintId, or the one node it was renamed to: an id's_in_<scope>part and#hashcome and go as other nodes with the same name appear or leave. -
firstAddressableId(
) → String? -
isInOverlay(
String glintId) → bool -
True when
glintIdbelongs to an overlay entry (dialog/sheet) rather than the base screen. The tap tool uses this to warn when a barrier may intercept the tap. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited