isPopGestureInProgress method

bool isPopGestureInProgress (
  1. PageRoute route
)

True if an iOS-style back swipe pop gesture is currently underway for route.

This just check the route's NavigatorState.userGestureInProgress.

See also:

  • popGestureEnabled, which returns true if a user-triggered pop gesture would be allowed.

Implementation

static bool isPopGestureInProgress(PageRoute<dynamic> route) {
  return route.navigator.userGestureInProgress;
}