bothDragUpdate method
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(() {
});
}