saturation property

num get saturation

The saturation value of this color. Color spaces without a saturation value will be converted to HSL to retrieve the value.

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

Ranges from 0 to 360.

Implementation

num get saturation => toHsbColor().saturation;