Polygon constructor

Polygon({
  1. LineString? boundary,
  2. List<LineString>? holes,
  3. SpatialReferenceSystem? srs,
})

Implementation

Polygon(
    {LineString? boundary,
    List<LineString>? holes,
    SpatialReferenceSystem? srs})
    : super(srs: srs) {
  this.boundary = boundary != null ? boundary : LineString();
  this.holes = holes != null ? holes : [];
}