setXY method

void setXY({
  1. required double x,
  2. required double y,
})

Sets the x,y coordinates of a point.

Parameters:

  • x — The new x-coordinate value for the point.
  • y — The new y-coordinate value for the point.