popView method

void popView([
  1. NavigationContext? navigationContext
])

Implementation

void popView([NavigationContext? navigationContext]) {
  _poppedNavigationContext = navigationContext;

  /* We only call the default pop from the navigator because the popView operation can also be triggered by the back
  button of the navigation bar and the systems's back function. The full popView behavior can be found in the
  _historyObserver. */
  _thisNavigatorKey.currentState!.pop();

  if (_history.isNotEmpty) {
    /* It has already popped at this time */
    setNavigationContext(navigationContext);
    _poppedNavigationContext = null;
  }
}