offsetBy method

void offsetBy({
  1. required double offsetX,
  2. required double offsetY,
})

Offsets the point by the given offsets for the x and y dimension.

Parameters:

  • offsetX — The number of units to move the point on the x axis.
  • offsetY — The number of units to move the point on the y axis.

Implementation

void offsetBy({
  required double offsetX,
  required double offsetY,
}) {
  _withThrowingErrorHandler((errorHandler) {
    runtimecore.RT_PointBuilder_offsetBy(
      _handle,
      offsetX,
      offsetY,
      errorHandler,
    );
  });
}