getPoint method

ArcGISPoint getPoint({
  1. required int pointIndex,
})

Returns a point at a specified point index.

The points in the part are the start and end points of segments. Segments can share a point if the end point of one segment matches the start point of the next.

Parameters:

  • pointIndex — Zero-based index of the point.

Return Value: An ArcGISPoint.

Implementation

ArcGISPoint getPoint({
  required int pointIndex,
}) {
  final objectHandle = _withThrowingErrorHandler((errorHandler) {
    return runtimecore.RT_ImmutablePart_getPoint(
      _handle,
      pointIndex,
      errorHandler,
    );
  });
  return ArcGISPoint._fromHandle(
    objectHandle,
  )!;
}