Polygon constructor

Polygon(
  1. List<LineString> lines
)

Implementation

Polygon(this.lines) {
  if (lines.length == 0) {
    throw new CloudBaseException(
      code: CloudBaseExceptionCode.INVALID_PARAM,
      message: 'Polygon must contain 1 linestring at least',
    );
  }
}