SemanticButton class

Inheritance

Constructors

SemanticButton({String? glintId, String? label, bool isToggle = false, List<SemanticNode> children = const []})

Properties

affordances → Set<Affordance>
Intrinsic role affordances are seeded at construction; mutable so a later behavior pass can add ones the role alone can't know (e.g. onTap-wrapped).
finalinherited
children → List<SemanticNode>
finalinherited
displayLabel → String
Short label for the plain-text renderer; each variant picks the most useful field (button label, text content, etc.).
no setteroverride
enabled ↔ bool?
False when the widget has no handler, so a tap does nothing; set by ButtonFactsEnricher.
getter/setter pair
glintId → String?
Null when the node is purely structural.
finalinherited
hashCode → int
The hash code for this object.
no setterinherited
inert ↔ Inert?
Set by InertEnricher on a control faded to opacity 0 or under an active IgnorePointer / AbsorbPointer.
getter/setter pairinherited
isToggle → bool
True for Checkbox / Switch / Radio-shaped widgets (ToggleClassifier).
final
label ↔ String?
Best-effort human label — contained text or tooltip. Icons stay as children so IconEnricher can populate their name post-classify.
getter/setter pair
role → SemanticRole
no setteroverride
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
selected ↔ bool?
Selection read from the widget or its Semantics by SemanticsFlagEnricher; null when it says nothing.
getter/setter pair
toggleState ↔ String?
'on' / 'off', populated by ToggleEnricher; null when unknown.
getter/setter pair

Methods

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

Operators

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