plus static method

Offset plus(
  1. Offset left,
  2. Offset right
)

Adds one Offset to another. Friendly alternative to operator+().

  • left: The left hand side of the operator.
  • right: 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

static Offset plus(Offset left, Offset right) => left + right;