operator - method

Offset operator -(
  1. Offset other
)

Returns the difference between this offset and other.

Implementation

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