removeScopedWillPopCallback method
- @Deprecated('Use unregisterPopEntry or PopScope instead. ' 'This feature was deprecated after v3.12.0-1.0.pre.')
- WillPopCallback callback
inherited
    Remove one of the callbacks run by willPop.
See also:
- Form, which provides an onWillPopcallback that uses this mechanism.
- addScopedWillPopCallback, which adds callback to the list checked by willPop.
Implementation
@Deprecated(
  'Use unregisterPopEntry or PopScope instead. '
  'This feature was deprecated after v3.12.0-1.0.pre.',
)
void removeScopedWillPopCallback(WillPopCallback callback) {
  assert(
    _scopeKey.currentState != null,
    'Tried to remove a willPop callback from a route that is not currently in the tree.',
  );
  _willPopCallbacks.remove(callback);
  if (_willPopCallbacks.isEmpty) {
    _maybeDispatchNavigationNotification();
  }
}