LineString constructor

LineString(
  1. List<Point> points
)

Implementation

LineString(this.points) {
  if (points.length < 2) {
    throw CloudBaseException(
      code: CloudBaseExceptionCode.INVALID_PARAM,
      message: 'points must contain 2 points at least',
    );
  }
}