hasScopedWillPopCallback property

  1. @Deprecated('Use popDisposition instead. ' 'This feature was deprecated after v3.12.0-1.0.pre.')
  2. @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:

Implementation

@Deprecated(
  'Use popDisposition instead. '
  'This feature was deprecated after v3.12.0-1.0.pre.',
)
@protected
bool get hasScopedWillPopCallback {
  return _willPopCallbacks.isNotEmpty;
}