translate method

  1. @override
void translate(
  1. Offset oldOffset,
  2. Offset newOffset
)
override

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);
  arrowPoint = arrowPoint.translate(deltaX, deltaY);
}