CustomMinimumContrastGuideline class Null safety

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

See also:

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-onlyoverride
finder Finder
The Finder used to find a subset of elements.
final
hashCode int
The hash code for this object.
read-onlyinherited
minimumRatio double
The minimum contrast ratio allowed.
final
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
tolerance double
Tolerance for minimum contrast ratio.
final

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
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited