operator - method

PrinterOffset operator -(
  1. PrinterOffset other
)

Binary subtraction operator.

Returns an PrinterOffset whose x value is the left-hand-side operand's x minus the right-hand-side operand's x and whose y value is the left-hand-side operand's y minus the right-hand-side operand's y.

See also translate.

Implementation

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