StyleRule.visibility constructor Null safety

  1. VisibilityRule visibility

indicates whether and how the element appears on the map. A simplified visibility removes some style features from the affected features; roads, for example, are simplified into thinner lines without outlines, while parks lose their label text but retain the label icon.


StyleRule.visibility(VisibilityRule visibility)
    : _key = "visibility",
      _value = visibility.value;