operator + method

PrinterOffset operator +(
  1. PrinterOffset other
)

Binary addition operator.

Returns an PrinterOffset whose x value is the sum of the x values of the two operands, and whose y value is the sum of the y values of the two operands.

See also translate.

Implementation

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