SemanticRole enum
This file defines the normalized metadata used by the semantic builder to
understand built-in Flutter widget semantics. The KnownSemantics table is
intended to be generated from a JSON catalogue (data/known_semantics_v2.6.json)
and contains per-widget static behavior useful for building the IR.
SemanticRole provides a coarse-grained role for accessibility
reasoning (button/image/textField/etc.).
Values
- image → const SemanticRole
- switchRole → const SemanticRole
- checkbox → const SemanticRole
- slider → const SemanticRole
- textField → const SemanticRole
- staticText → const SemanticRole
- header → const SemanticRole
- group → const SemanticRole
- unknown → const SemanticRole
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- name → String
-
Available on Enum, provided by the EnumName extension
The name of the enum value.no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
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
Constants
-
values
→ const List<
SemanticRole> - A constant List of the values in this enum, in order of their declaration.