withHue method

Color withHue(
  1. double hue
)

Returns a copy of this color with the given HSL hue (0..360).

Implementation

Color withHue(double hue) =>
    HSLColor.fromColor(this).withHue(hue.clamp(0.0, 360.0)).toColor();