isUserGestureInProgress static method

bool isUserGestureInProgress(
  1. ModalRoute route
)

True if an gesture is currently underway for route.

This just check the route's NavigatorState.userGestureInProgress.

See also:

Implementation

static bool isUserGestureInProgress(ModalRoute<dynamic> route) {
  return route.navigator!.userGestureInProgress;
}