horizontalDragUpdate method

void horizontalDragUpdate(
  1. DragUpdateDetails details
)

Function for onPanUpdate when the dragAxis is DragAxis.horizontal.

Implementation

void horizontalDragUpdate(DragUpdateDetails details) {
  setState(() {
    dragHorizontal -= details.delta.dx;
    dragHorizontal %= 360;
    findSide();
  });
}