withHue method

HSLuvColor withHue(
  1. double hue
)

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

Implementation

HSLuvColor withHue(double hue) {
  return HSLuvColor.fromHSL(hue, saturation, lightness);
}