addSaturation 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 addSaturation(double add, {double min = 0, double max = 100}) {
return HSLuvColor.fromHSL(
hue,
math.max(min, math.min(saturation + add, max)),
lightness,
);
}