setAll method

void setAll(
  1. int x,
  2. int y
)

Sets all points in the list to specific values.

  • x: The x-coordinate to set.
  • y: The y-coordinate to set.

Implementation

void setAll(int x, int y) {
  forEach((point) {
    point.x = x;
    point.y = y;
  });
}