operator unary- method

PrinterOffset operator unary-()

Unary negation operator.

Returns an PrinterOffset with the coordinates negated.

If the PrinterOffset represents an arrow on a plane, this operator returns the same arrow but pointing in the reverse direction.

Implementation

PrinterOffset operator -() => PrinterOffset(-x!, -y!);