LayerColor class

a color with three layers: back, front, and border

the back layer is the main color of the element the front layer is the color of the text and icons the border layer is the color of the border. If null, the border is transparent

Inheritance
Implementers

Constructors

LayerColor({required Color back, required Color front, Color? border, Color? borderContext})
a layer color is a color with three layers: back, front, and border the back layer is the main color of the element the front layer is the color of the text and icons the border layer is the color of the border
LayerColor.from(LayerColor c)
LayerColor.fromBack(Color back, {Color? front, Color? border})
factory

Properties

back Color
the background color. This is the main color of the element
final
border Color?
the border color. This is the color of the border. If null, the border is transparent
final
borderContext Color?
final
front Color
the front color. This is the color of the text and icons
final
hashCode int
The hash code for this object.
no setterinherited
map JsonMap
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

desaturated([double factor = 1]) LayerColor
return a color with the same hue but different saturation factor = 1 will return the same color, 0 will return grey
inter(LayerColor other, double factor) LayerColor
interpolate between two colors factor = 1 will return the other color, 0 will return the same color
layer(ColorLayers layer) Color
maybeLayer(ColorLayers? layer) Color?
mirrorBrightness([double factor = 1]) LayerColor
mirror the brightness of a color. keep the hue and saturation factor = 1 will return the inverted color, 0 will return the same color
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