withHue method
Returns this RgbColor modified with the provided hue
value.
Implementation
@override
RgbColor withHue(num hue) {
assert(hue >= 0 && hue <= 360);
final hslColor = toHslColor();
return hslColor.withHue((hslColor.hue + hue) % 360).toRgbColor();
}