onPop method
This method is called when the route is popped off the top of the RouterComponent's stack.
The argument for this method is the route that will become the next top-most route on the stack. Thus, the argument in onPop will always be the same as was given previously in onPush.
Implementation
void onPop(Route nextRoute) {}