onDragUpdate method

  1. @override
void onDragUpdate(
  1. DragUpdateDetails e
)
override

Implementation

@override
void onDragUpdate(DragUpdateDetails e) {
  if (!hasRoute) {
    if (!userGestureEnabled) return;
    if (!canAnimate(e)) return;
    showRoute();
    if (!userGestureInProgress) startUserGesture();
  } else {
    if (!userGestureInProgress) {
      if (!userGestureEnabled) return;
      startUserGesture();
    }
    super.onDragUpdate(e);
  }
}