decrement method

  1. @override
Position decrement(
  1. WithXY p
)
override

Increments the X,Y coordinates by p.

Implementation

@override
Position decrement(WithXY p) => incrementXY(-p.x, -p.y);