HSVColor withValue(double value)

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

Source

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