addPointXY method

int addPointXY(
  1. {required double x,
  2. required double y}
)

Add a new point to the end of the mutable point collection by specifying the points x,y coordinates.

Parameters:

  • x — The x-coordinate of the new point.
  • y — The y-coordinate of the new point.

Return Value: the point index where the point was added. If an error occurred, then -1 is returned.

Implementation

int addPointXY({required double x, required double y}) {
  return _withThrowingErrorHandler((errorHandler) {
    return runtimecore.RT_MutablePointCollection_addPointXY(
        _handle, x, y, errorHandler);
  });
}