StyleRule.weight constructor Null safety

StyleRule.weight(
  1. int weight
)

(an integer value, greater than or equal to zero) sets the weight of the feature, in pixels. Setting the weight to a high value may result in clipping near tile borders.

Implementation

StyleRule.weight(int weight)
    : assert(
        weight >= 0,
        "weight argument should be greater than or equal to zero",
      ),
      _key = "weight",
      _value = weight.toString();