addLightness method
Returns a copy of this color with saturation being added via the add
parameter.
It also accepts a min
and max
parameters, where default = 0, 100.
Implementation
HSLuvColor addLightness(double add, {double min = 0, double max = 100}) {
return HSLuvColor.fromHSL(
hue,
saturation,
math.max(min, math.min(lightness + add, max)),
);
}