HslColor constructor
A color in the HSL color space.
hue
must be >= 0
and <= 360
.
saturation
and lightness
must both be >= 0
and <= 100
.
alpha
must be >= 0
and <= 255
.
Implementation
const HslColor(
num hue,
num saturation,
num lightness, [
int alpha = 255,
]) : assert(hue >= 0 && hue <= 360),
assert(saturation >= 0 && saturation <= 100),
assert(lightness >= 0 && lightness <= 100),
assert(alpha >= 0 && alpha <= 255),
super(hue, saturation, lightness, alpha);