operator + method Null safety

Offset operator +(
  1. Offset other
)

Binary addition operator.

Returns an offset whose dx value is the sum of the dx values of the two operands, and whose dy value is the sum of the dy values of the two operands.

See also translate.

Implementation

Offset operator +(Offset other) => Offset(dx + other.dx, dy + other.dy);