LabColor constructor
Constructs a LabColor
.
lightness
(L) must be between 0 (inclusive) and 100 (inclusive).chroma
(a) must be between -128 (inclusive) and 128 (inclusive).hue
(b) must be between -128 (inclusive) and 128 (inclusive).
Implementation
const LabColor(this.lightness, this.chroma, this.hue)
: assert(lightness >= 0 && lightness <= 100),
assert(chroma >= -128 && chroma <= 128),
assert(hue >= -128 && hue <= 128);