ContrastCurve class final
A class containing a value that changes with the contrast level.
Usually represents the contrast requirements for a dynamic color on its background. The four values correspond to values for contrast levels -1.0, 0.0, 0.5, and 1.0, respectively.
Constructors
- ContrastCurve(double low, double normal, double medium, double high)
-
const
Properties
- hashCode → int
-
The hash code for this object.
no setteroverride
- high → double
-
Value for contrast level 1.0.
final
- low → double
-
Value for contrast level -1.0.
final
- medium → double
-
Value for contrast level 0.5.
final
- normal → double
-
Value for contrast level 0.0.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
get(
double contrastLevel) → double - Returns the value at a given contrast level.
-
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.
override