withHue method

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

Returns this HsbColor modified with the provided hue value.

Implementation

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