AmbiguousNameRule class
Flags interactive elements on a screen that share an identical accessible name.
Two "Delete" buttons with nothing to tell them apart leave a screen-reader user guessing which is which. This is a heuristic: legitimately repeated controls (a list of identical "Add" buttons) can trip it, so it ships as a warning that is easy to suppress.
- Implemented types
Constructors
- AmbiguousNameRule()
-
Creates an AmbiguousNameRule.
const
Properties
- confidence → Confidence
-
How much to trust this rule's findings.
no setteroverride
- criterion → Criterion
-
The standard clause this rule enforces.
no setteroverride
- defaultSeverity → Severity
-
The severity findings get unless configuration overrides it.
no setteroverride
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String
-
The stable rule id, e.g.
attest/interactive-name.no setteroverride - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
evaluate(
SemanticsSnapshot snapshot, RuleContext context) → Iterable< Finding> -
Inspects
snapshotand yields zero or more findings.override -
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