insertPointXY method

void insertPointXY(
  1. {required int pointIndex,
  2. required double x,
  3. required double y}
)

Inserts a point specified by its x,y coordinates 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.
  • x — The x-coordinate of the new point.
  • y — The y-coordinate of the new point.

Implementation

void insertPointXY(
    {required int pointIndex, required double x, required double y}) {
  _withThrowingErrorHandler((errorHandler) {
    runtimecore.RT_MutablePointCollection_insertPointXY(
        _handle, pointIndex, x, y, errorHandler);
  });
}