PolylineBuilder class final

The polyline builder allows you to create and modify Polyline geometries incrementally.

Polyline geometries are immutable and cannot be changed directly once created. The polyline builder allows you to change the contents of the shape by using the mutable MutablePartCollection that is accessible from MultipartBuilder.parts. Each MutablePart, in the collection, comprises a collection of segments that make the MutablePart. You can add or remove a MutablePart from the MutablePartCollection, or you can create a new or edit the segment vertices of an existing MutablePart. Use GeometryBuilder.toGeometry to return the new Polyline from the builder.

Inheritance

Constructors

PolylineBuilder({SpatialReference? spatialReference})
Creates a new empty polyline builder with the specified SpatialReference.
factory
PolylineBuilder.fromPolyline(Polyline polyline)
Creates a new polyline builder by copying the parts from the specified Polyline.
factory

Properties

extent Envelope
The extent for the geometry being constructed in the geometry builder.
no setterinherited
hasCurves bool
True if the geometry builder currently contains any curve segments, false otherwise.
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
hasM bool
True if the geometry builder supports geometries with m values, false otherwise.
no setterinherited
hasZ bool
True if the geometry builder supports geometries with z values, false otherwise.
no setterinherited
isEmpty bool
True if no coordinates have been added to this geometry builder, false otherwise.
no setterinherited
isSketchValid bool
True if the geometry builder contains sufficient points to show a valid graphical sketch, false otherwise.
no setterinherited
parts MutablePartCollection
New parts for the multipart builder.
getter/setter pairinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
spatialReference SpatialReference?
The spatial reference for the geometry.
no setterinherited

Methods

addPoint(ArcGISPoint point) int
Adds a new point to the end of the last part of the multipart.
inherited
addPointXY({required double x, required double y}) int
Adds a new point to the end of the last part of the multipart.
inherited
addPointXYZ({required double x, required double y, required double z}) int
Adds a new point to the end of the last part of the multipart.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
replaceGeometry(Geometry? geometry) → void
Replaces the geometry currently stored in the geometry builder with the new geometry.
inherited
toGeometry() Geometry
Returns Geometry that the geometry builder is constructing or modifying.
inherited
toString() String
A string representation of this object.
inherited

Operators

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