StyleRule.visibility constructor Null safety

StyleRule.visibility(
  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.

Implementation

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