LabColor class

A color represented in the CIELAB color space which expresses a color as three values: its lightness (L*) from black (0) to white (100), its chroma (a*) from green (-180) to red (+180), and its hue (b*) from blue (-180) to yellow (+180).

Learn more: https://en.wikipedia.org/wiki/CIELAB_color_space

Constructors

LabColor(double lightness, double chroma, double hue)
Constructs a LabColor.
const
LabColor.fromRGB(int red, int green, int blue)
Constructs a LabColor from a RGB color.
factory
LabColor.fromRGBValue(int value, [RGBStructure structure = RGBStructure.argb])
Constructs a LabColor from a RGB color value. The structure parameter is used to specify how value is structured, it's set to RGBStructure.argb by default (which is what Flutter uses for its color values).
factory

Properties

a double
Shorthand for chroma.
no setter
b double
Shorthand for hue.
no setter
chroma double
final
hashCode int
The hash code for this object.
no setterinherited
hue double
final
l double
Shorthand for lightness.
no setter
lightness double
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

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