withLightness method

  1. @override
HSLColour withLightness(
  1. double lightness
)
override

Returns a copy of this color with the lightness parameter replaced with the given value.

Implementation

@override
HSLColour withLightness(double lightness) {
  return HSLColour.fromAHSL(alpha, hue, saturation, lightness);
}