isUserGestureInProgress static method
True if an gesture is currently underway for route
.
This just check the route's NavigatorState.userGestureInProgress.
See also:
- userGestureEnabled, which returns true if a user-triggered gesture would be allowed.
Implementation
static bool isUserGestureInProgress(ModalRoute<dynamic> route) {
return route.navigator!.userGestureInProgress;
}