withValue method Null safety

HSVColor withValue(
  1. double value
)

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

Implementation

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