insertPoint method

void insertPoint(
  1. {required int pointIndex,
  2. required ArcGISPoint point}
)

Inserts a point into the mutable point collection at the specified point index.

The point index can be equal to the point count and this is equivalent to adding a point to the end of the collection.

Parameters:

  • pointIndex — Zero-based index of the point.
  • point — The point to insert.

Implementation

void insertPoint({required int pointIndex, required ArcGISPoint point}) {
  _withThrowingErrorHandler((errorHandler) {
    runtimecore.RT_MutablePointCollection_insertPoint(
        _handle, pointIndex, point._handle, errorHandler);
  });
}