ImmutablePartCollection class final

Represents immutable collection of parts for a polygon or polyline geometry. Each part is a collection of segments.

Polygons and polyline can have multiple disjoint parts. Each part is represented by an ImmutablePart. A part is composed of segments representing the edge of the polygon or polyline.

Implemented types

Properties

hashCode int
The hash code for this object.
no setterinherited
isEmpty bool
Indicates if the immutable part collection contains no parts.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
size int
The number of parts in the immutable part collection.
no setter
spatialReference SpatialReference?
The spatial reference for the immutable part collection.
no setter

Methods

getPart({required int index}) ImmutablePart
Returns a part at the specified index in the immutable part collection. A part is represented by an immutable collection of segments.
indexOf({required ImmutablePart immutablePart}) int
Retrieves the position of the given part in the immutable part collection.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited