addSaturation method

HSLuvColor addSaturation(
  1. double add, {
  2. double min = 0,
  3. double max = 100,
})

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,
  );
}