addPointXY method
Adds a new point to the end of the last part of the multipart.
If there are no parts then an initial part is created and the point added to that. The point becomes the end point of a line segment in the part.
Parameters:
x
— The x-coordinate of the point to add.y
— The y-coordinate of the point to add.
Return Value: The point index of the new point in the last part.
Implementation
int addPointXY({required double x, required double y}) {
return _withThrowingErrorHandler((errorHandler) {
return runtimecore.RT_MultipartBuilder_addPointXY(
_handle, x, y, errorHandler);
});
}