hasScopedWillPopCallback property

  1. @protected
bool hasScopedWillPopCallback

True if one or more WillPopCallback callbacks exist.

This method is used to disable the horizontal swipe pop gesture supported by MaterialPageRoute for TargetPlatform.iOS and TargetPlatform.macOS. If a pop might be vetoed, then the back gesture is disabled.

The buildTransitions method will not be called again if this changes, since it can change during the build as descendants of the route add or remove callbacks.

See also:


bool get hasScopedWillPopCallback {
  return _willPopCallbacks.isNotEmpty;