MultiPolygon.fromPolygons constructor

MultiPolygon.fromPolygons({
  1. BBox? bbox,
  2. required List<Polygon> polygons,
})

Implementation

MultiPolygon.fromPolygons({BBox? bbox, required List<Polygon> polygons})
    : assert(polygons.length >= 2),
      super.withType(polygons.map((e) => e.coordinates).toList(),
          GeoJSONObjectType.multiPolygon,
          bbox: bbox);