add method

Offset add(
  1. Offset other
)

Returns the result of adding another Offset to this one, for a fluent alternative to operator+().

  • other: The offset to add

Returns: The result of adding the other offset to this one.

  • RangeError: The result of the operation is outside the range of Offset.

Implementation

Offset add(Offset other) => this + other;