MinimumTextContrastGuideline class

A guideline which verifies that all nodes that contribute semantics via text meet minimum contrast levels.

The guidelines are defined by the Web Content Accessibility Guidelines, http://www.w3.org/TR/UNDERSTANDING-WCAG20/visual-audio-contrast-contrast.html.

Inheritance
Annotations
  • @visibleForTesting

Properties

description String
A description of the policy restrictions and criteria.
read-only, override
hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

evaluate(WidgetTester tester) Future<Evaluation>
Evaluate whether the current state of the tester conforms to the rule.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
Returns a string representation of this object.
inherited

Operators

operator ==(dynamic other) bool
The equality operator. [...]
inherited

Constants

kBoldTextMinimumSize → const int
The minimum text size for bold text to be considered large for contrast checking. [...]
14
kLargeTextMinimumSize → const int
The minimum text size considered large for contrast checking. [...]
18
kMinimumRatioLargeText → const double
The minimum contrast ratio for large text. [...]
3.0
kMinimumRatioNormalText → const double
The minimum contrast ratio for normal text. [...]
4.5