InspectTree class
One entry's tree, as of one build of it.
Constructors
- InspectTree({required String? entryId, InspectNode? root, int? format})
-
const
-
InspectTree.fromJson(Map<
String, Object?> json) -
Reads either spelling — see toJson for what
compactchanges and why a reader has to know both.factory
Properties
- entryId → String?
-
Which entry this is of.
final
- format → int?
-
Which way of describing a widget produced this tree — see
GuestInspector.treeFormat. Null for a tree read before formats were recorded, or read by something other than the guest's own walk.final - hashCode → int
-
The hash code for this object.
no setterinherited
- length → int
-
no setter
-
nodes
→ Iterable<
InspectNode> -
Every node, depth-first, root included.
no setter
- root → InspectNode?
-
Null when the guest has not built yet — a headless host draws nothing
until a frame is asked for, so a tree read before one is an answer about
nothing rather than an error.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
chainAt(
double x, double y) → List< InspectNode> -
Every on-stage node whose box contains (
x,y), outermost first. -
filtered(
InspectFilter filter) → InspectTree -
This tree, narrowed to what
filterasks for. -
matching(
String query) → Iterable< InspectNode> -
The node with
id, or null. -
nodeAt(
String id) → InspectNode? -
nodeAtPoint(
double x, double y) → InspectNode? -
The deepest node whose box contains (
x,y), in the guest's own coordinates. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
places(
String selector) → List< InspectNode> -
The places on screen
selectorcould mean: resolve, with matches nested inside one another taken as one place. -
resolve(
String selector) → List< InspectNode> -
Every node
selectorcould mean — an id first, then a name matched the way matching matches. -
styles(
) → List< InspectStyle> - style existed have only the old keys, and a ramp of the exceptions still beats an empty table when reopening an old run.
-
toJson(
{bool compact = false}) → Map< String, Object?> - The tree as JSON, in one of two spellings.
-
toString(
) → String -
A string representation of this object.
inherited
-
translationKeys(
) → List< TranslationOccurrence> - Every distinct text style on screen, most-used first.
-
unkeyedText(
) → List< UnkeyedText> - Every span on this screen that no catalog claimed, with where it is.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- empty → const InspectTree