operator - method

IntOffset operator -(
  1. IntOffset other
)

Subtracts one IntOffset from another and returns their difference.

The resulting offset has coordinates that are the difference of the coordinates of the two operands.

Implementation

IntOffset operator -(IntOffset other) => IntOffset(x - other.x, y - other.y);