removeScopedWillPopCallback method

void removeScopedWillPopCallback (WillPopCallback callback)

Remove one of the callbacks run by willPop.

See also:

Implementation

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);
}