CustomMinimumContrastGuideline class

A guideline which verifies that all elements specified by finder meet minimum contrast levels.

Inheritance

Constructors

CustomMinimumContrastGuideline({@required Finder finder, double minimumRatio: 4.5, double tolerance: 0.01, String description: 'Contrast should follow custom guidelines'})
Creates a custom guideline which verifies that all elements specified by finder meet minimum contrast levels. [...]
const

Properties

description String
A description of the policy restrictions and criteria.
read-only, override
finder Finder
The Finder used to find a subset of elements. [...]
final
minimumRatio double
The minimum contrast ratio allowed. [...]
final
tolerance double
Tolerance for minimum contrast ratio. [...]
final
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