increment method

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

Increments the X,Y coordinates by p.

Implementation

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