withSaturation method Null safety

HSLColor withSaturation(
  1. double saturation
)

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

Implementation

HSLColor withSaturation(double saturation) {
  return HSLColor.fromAHSL(alpha, hue, saturation, lightness);
}