hue property

num hue
inherited

Gets the hue value of this color.

If you intend to get both the hue and saturation values, it is recommended to convert the color to a HslColor and getting the values from it, to avoid calculating the hue multiple times, unnecessarily.

Ranges from 0 to 360.

Implementation

num get hue => (ColorConverter.getHue(toRgbColor()) * 360) % 360;