init method
Implementation
void init(CoordinateSequence? points) {
if (points == null) {
points = getFactory().getCoordinateSequenceFactory().create([]);
}
if (points.size() == 1) {
throw new ArgumentError(
"Invalid number of points in LineString (found ${points.size()} - must be 0 or >= 2)");
}
this.points = points;
}