Offset operator -(Point other)

Binary subtraction operator. Returns an Offset representing the direction and distance from the other point (the right-hand-side operand) to this point (the left-hand-side operand).

Source

Offset operator -(Point other) => new Offset(x - other.x, y - other.y);