MutablePartCollection class final

A collection object that can be changed containing parts for a geometry. Each part is represented by a MutablePart.

Implemented types

Constructors

MutablePartCollection.withSpatialReference(SpatialReference? spatialReference)
Creates a mutable part collection with a specified spatial reference.
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
isEmpty bool
Indicates if the mutable 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 collection.
no setter
spatialReference SpatialReference?
The spatial reference for the mutable part collection.
no setter

Methods

addPart({required MutablePart mutablePart}) int
Add a new part to the end of the mutable part collection.
getPart({required int index}) MutablePart
Returns a part at the specified index in the collection.
indexOf({required MutablePart mutablePart}) int
Retrieves the position of the segment in the mutable part collection. The first segment that is equal to the supplied segment is returned.
insertPart({required int index, required MutablePart mutablePart}) → void
Inserts a part into the mutable part collection at the specified part index.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
removeAll() → void
Remove all parts from the mutable part collection.
removePart({required int index}) → void
Removes a part from the mutable part collection.
setPart({required int index, required MutablePart mutablePart}) → void
Replace a part in the mutable part collection at the specified part index.
toString() String
A string representation of this object.
inherited

Operators

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