ThemeColor class
A color that holds a variant for light and dark themes.
- Implementers
Constructors
- ThemeColor.new(Color light, {Color? dark})
-
const
Properties
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
-
withHue(
double hue, {bool replace = true}) → ThemeColor - Returns a new color that matches this color, but with its hue modified.
-
withLightness(
double lightness, {bool replace = true}) → ThemeColor - Returns a new color that matches this color, but with its lightness modified.
-
withOpacity(
double opacity, {bool replace = true}) → ThemeColor - Returns a new color that matches this color, but with its opacity modified.
-
withValues(
{double? red, double? green, double? blue, double? alpha}) → ThemeColor - Returns a new color with the provided values replaced.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override