Polygon constructor

Polygon({
  1. String? type = 'FeatureCollection',
  2. List<Feature>? features = const [],
})

Returns a new Polygon instance.

Implementation

Polygon({
  this.type = 'FeatureCollection',
  this.features = const [],
});