ContrastChecker class

Constructors

ContrastChecker()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

contrastCheck(double fontSize, Color textColor, Color backgroundColor, WCAG wcag) bool
This method should be called when you want to check the contrast color from your text color and your background color paramsfontSize for the text font sizes paramstextColor for the text color paramsbackgroundColor for the text background color paramswcag for the contrast type do you want, WCAG.AA or WCAG.AAA
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