void translate(Offset oldOffset, Offset newOffset) { final deltaX = newOffset.dx - oldOffset.dx; final deltaY = newOffset.dy - oldOffset.dy; location = location.translate(deltaX, deltaY); }