withHue method

  1. @override
HslColor withHue(
  1. num hue
)

Returns this HslColor modified with the provided hue value.

Implementation

@override
HslColor withHue(num hue) {
  assert(hue >= 0 && hue <= 360);
  return HslColor(hue, saturation, lightness, alpha);
}