StyleRule.invertLightness constructor Null safety

  1. bool invertLightness

(if true) inverts the existing lightness. This is useful, for example, for quickly switching to a darker map with white text.

Note: This option simply inverts the default Google style. If Google makes any changes to the base map style, the changes affect your map's features styled with invert_lightness. It's better to use the absolute color styler if you can.


StyleRule.invertLightness(bool invertLightness)
    : _key = "invert_lightness",
      _value = invertLightness.toString();