StyleRule.saturation constructor

const StyleRule.saturation(
  1. int saturation
)

(a floating point value between -100 and 100) indicates the percentage change in intensity of the basic color to apply to the element.

Note: This option sets the saturation while keeping the hue and lightness specified in the default Google style (or in other style options you define on the map). The resulting color is relative to the style of the base map. If Google makes any changes to the base map style, the changes affect your map's features styled with saturation. It's better to use the absolute color styler if you can.

Implementation

const factory StyleRule.saturation(int saturation) = _StyleSaturationRule;