withSaturation method Null safety

HSVColor withSaturation(
  1. double saturation
)

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

Implementation

HSVColor withSaturation(double saturation) {
  return HSVColor.fromAHSV(alpha, hue, saturation, value);
}