ThemeColor class

A color that holds a variant for light and dark themes.

Implementers

Constructors

ThemeColor.new(Color light, {Color? dark})
const

Properties

dark → Color?
final
hashCode int
The hash code for this object.
no setteroverride
light → Color
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value String
The color css value
no setter

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