withSaturation method

  1. @override
HSLColour withSaturation(
  1. double saturation
)
override

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

Implementation

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