addLightness method

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