bool equalsXY(num x, num y)

Source

bool equalsXY(num x, num y) => this.x == x && this.y == y;