StyleRule.saturation constructor Null safety

  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.


StyleRule.saturation(int saturation)
    : assert(
        saturation >= -100 && saturation <= 100,
        "saturation argument must be in range -100 to 100",
      _key = "saturation",
      _value = saturation.toString();