operator + method

Offset operator +(
  1. Offset other
)

Returns the sum of this offset and other.

Implementation

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