A11yRule class abstract

A single accessibility check that can be run against a captured widget tree snapshot.

Built-in checks (contrast, tap target size, semantic labels, ...) implement this, and teams can register their own by implementing it too — this is the extension point referenced in the design-system-awareness goal (custom tap-size / contrast minimums).

Implementers

Constructors

A11yRule()
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<A11yElementInfo> elements) List<A11yViolation>
Inspects elements — a snapshot of the tree captured by the ElementTreeWalker — 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