A11ySemanticsRule class abstract

A check that runs against a SemanticsTreeWalker snapshot rather than an ElementTreeWalker one — the counterpart to A11yRule for issues that can only be caught by reading the actual accessibility tree (missing labels on widgets that set semantics via a custom RenderObject, focus order, ...).

Implementers

Constructors

A11ySemanticsRule()
const

Properties

description String
Short human-readable description of what this rule checks.
no setter
hashCode int
The hash code for this object.
no setterinherited
id String
Stable identifier used in A11yViolation.ruleId and reports.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

check(List<A11ySemanticsNodeInfo> nodes) List<A11yViolation>
Inspects nodes — a snapshot captured by SemanticsTreeWalker — and returns any violations found.
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