ContrastFailure class

One pair that reads under its floor. Fix it in the palette it came from — never by lowering the floor here.

Constructors

ContrastFailure({required String scheme, required String role, required Color foreground, required Color background, required double ratio, required double floor})
const

Properties

background → Color
final
floor → double
final
foreground → Color
final
hashCode → int
The hash code for this object.
no setterinherited
ratio → double
final
role → String
e.g. onSurfaceVariant on surfaceContainerHighest.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
scheme → String
e.g. finance light.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
override

Operators

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