onPopPage method

  1. @protected
bool onPopPage(
  1. Route route,
  2. dynamic result
)

Behaviour when page pop is requested.

Derived classes can override this method to alter the behaviour.

Implementation

@protected
bool onPopPage(Route route, dynamic result) {
  if (!route.didPop(result)) {
    return false;
  }

  setCurrent(_current.pop());

  return true;
}