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