MultiPolygon constructor

MultiPolygon(
  1. List<Polygon> polygons
)

Implementation

MultiPolygon(this.polygons) {
  if (polygons.length <= 0) {
    throw new CloudBaseException(
      code: CloudBaseExceptionCode.INVALID_PARAM,
      message: 'MultiPolygon must contain 1 polygon at least',
    );
  }
}