bothDragUpdate method

void bothDragUpdate(
  1. DragUpdateDetails details
)

Function for onPanUpdate when the dragAxis is DragAxis.both.

Implementation

void bothDragUpdate(DragUpdateDetails details) {
  if(isInverted){
    dragHorizontal += details.delta.dx;
  }else {
    dragHorizontal -= details.delta.dx;
  }
  dragVertical += details.delta.dy;
  dragHorizontal %= 360;
  dragVertical %= 360;
  findSide();
  setState(() {

  });
}