copyInternal method
An internal method to copy subclass-specific geometry data.
@return a copy of the target geometry object.
Implementation
GeometryCollection copyInternal() {
List<Geometry> geometries = []; //..length = (this.geometries.length);
for (int i = 0; i < this.geometries.length; i++) {
// geometries[i] = this.geometries[i].copy();
geometries.add(this.geometries[i].copy());
}
return new GeometryCollection.withFactory(geometries, geomFactory);
}