HSVColor withHue(double hue)

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

Source

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