setPoint method

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

Replace a point in the part at the specified point index. Segments that use this point are changed.

The points in the part correspond to start and end points of segments. Setting a new point affects 1 or 2 segments using the point at the specified index. The type of affected segment(s) (LineSegment, CubicBezierSegment or EllipticArcSegment) remains the same.

For affected cubic bezier segments, the shape of the curve may change because the control points remain the same, as does the unchanged start or end point location. For elliptic arc segments, the arc parameters are adjusted enough to ensure the unchanged start or end point location remains the same.

Parameters:

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

Implementation

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