1. protected
  2. mustCallSuper
bool didPop(T result)

A request was made to pop this route. If the route can handle it internally (e.g. because it has its own stack of internal state) then return false, otherwise return true. Returning false will prevent the default behavior of NavigatorState.pop().

If this is called, the Navigator will not call dispose(). It is the responsibility of the Route to later call dispose().

Source

@protected
@mustCallSuper
bool didPop(T result) {
  _popCompleter.complete(result);
  return true;
}