didPop method

  1. @internal
void didPop(
  1. Route nextRoute
)

Invoked by the RouterComponent when this route is popped off the top of the navigation stack. If maintainState is false, the page component rendered by this route is not retained when the route it popped.

Implementation

@internal
void didPop(Route nextRoute) {
  onPop(nextRoute);
  if (!maintainState) {
    _page?.removeFromParent();
    _page = null;
  }
}