GeometryCollection.withFactory constructor
GeometryCollection.withFactory(
- List<
Geometry> ? geometries, - GeometryFactory factory
@param geometries
the Geometry
s for this GeometryCollection
,
or null
or an empty array to create the empty
geometry. Elements may be empty Geometry
s,
but not null
s.
Implementation
GeometryCollection.withFactory(
List<Geometry>? geometries, GeometryFactory factory)
: super(factory) {
if (geometries == null) {
geometries = [];
}
if (Geometry.hasNullElements(geometries)) {
throw new ArgumentError("geometries must not contain null elements");
}
this.geometries = geometries;
}