StyleRule.invertLightness constructor
const
StyleRule.invertLightness(
- 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.
Implementation
const factory StyleRule.invertLightness(bool invertLightness) =
_StyleInvertLightnessRule;