subtract method
Returns the result of subtracting another Offset from this one, for a fluent alternative to operator-()
.
other
: The offset to subtract
Returns: The result of subtracting the other offset from this one.
RangeError: The result of the operation is outside the range of Offset.
Implementation
Offset subtract(Offset other) => this - other;