popGestureEnabled property
override
Whether a pop gesture can be started by the user for this route.
Returns true if the user can edge-swipe to a previous route.
This should only be used between frames, not during build.
Implementation
@override
bool get popGestureEnabled {
// Fullscreen dialogs aren't dismissible by back swipe.
return !fullscreenDialog && super.popGestureEnabled;
}