1. override
void didPopNext(Route nextRoute)

The given route, which came after this one, has been popped off the navigator.

Source

@override
void didPopNext(Route<dynamic> nextRoute) {
  Focus.moveScopeTo(focusKey, context: navigator.overlay.context);
  super.didPopNext(nextRoute);
}