InspectNode class

One widget in the tree.

Constructors

InspectNode({required String id, required String type, String? description, String? widgetKey, InspectSource? source, bool createdByLocalProject = false, bool offstage = false, Map<String, String> properties = const {}, Map<String, String> textStyle = const {}, Map<String, String> inheritedStyle = const {}, bool? styleReplacesInherited, List<InspectKey> keys = const [], List<String> unkeyedText = const [], bool textOverflowed = false, InspectLayout? layout, String? label, bool? selected, List<InspectNode> children = const [], int elidedChildren = 0})
const
InspectNode.fromJson(Map<String, Object?> json)
factory

Properties

children → List<InspectNode>
final
createdByLocalProject → bool
Whether the framework considers this the user's code rather than package:flutter's.
final
description → String?
The framework's own one-line description, which carries more than the type: Text("Save"), SizedBox(width: 8.0). Null when it says nothing the type does not.
final
elidedChildren → int
How many children a depth cut removed, when one did.
final
hashCode → int
The hash code for this object.
no setterinherited
id → String
The node's identity, and the whole reason this type exists rather than the inspector's JSON being passed through.
final
inheritedStyle → Map<String, String>
The default text style in force where this widget sits — what the theme was offering here, including for the fields the widget overrode.
final
keys → List<InspectKey>
Which translation keys produced this node's words, and where.
final
label → String?
What a screen reader would call this, from the semantics node this widget's render object contributes to.
final
layout → InspectLayout?
Where it ended up, when it has a box.
final
nodesFoldingOffstage → Iterable<InspectNode>
This node and everything under it, depth-first, with offstage subtrees folded to their flagged top node — reported, so a reader knows the content exists, and cut there, because a covered route is most of a tree's bulk and none of its picture.
no setter
offstage → bool
Whether this widget is in the tree but not on the screen.
final
properties → Map<String, String>
What the widget says about itself — its own diagnostics, filtered.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
selected → bool?
Whether this is the current one of its group — tri-state, and the third state is the point.
final
source → InspectSource?
final
styleLine → String?
The style in one line — 14/400 #1D1B20 Roboto — or null when this node draws no text.
no setter
styleReplacesInherited → bool?
Whether the widget's own style replaced inheritedStyle rather than merging into it. Null when this kind of widget cannot say.
final
textOverflowed → bool
Whether this node's paragraph ran out of room — maxLines exceeded, so the words are ellipsised or clipped.
final
textStyle → Map<String, String>
The style this node's glyphs were actually painted with, resolved.
final
type → String
The widget's runtime type — Padding, _Dashboard.
final
unkeyedSpans → int
no setter
unkeyedText → List<String>
This node's text spans that no catalog claimed — the words themselves.
final
widgetKey → String?
The widget's key as the framework spells one — [<'save'>], [GlobalKey#] — or null for the great majority of widgets, which have none.
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

Operators

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

Static Methods

splitKey(String? description, String type) → ({String? description, String? key})
Form-[LabeledGlobalKey<FormState>#acc1d] → ('Form', '[LabeledGlobalKey<FormState>#]').