operator + method
Implements the operator + (addition).
- this: The left hand side of the operator.
other
: The right hand side of the operator.
Returns: A new Offset representing the sum of the given values.
- RangeError: The result of the operation is outside the range of Offset.
Implementation
Offset operator +(Offset other) => Offset(inSeconds + other.inSeconds);