didPop method
The Navigator popped route.
The route immediately below that one, and thus the newly active
route, is previousRoute.
Implementation
@override
void didPop(Route<dynamic> route, Route<dynamic>? previousRoute) {
super.didPop(route, previousRoute);
final now = DateTime.now();
_recordRouteLifecycle(route, RouteAction.pop, now);
if (_enablePerformanceTracking) {
_stopRoutePerformanceTracking(route);
}
_updatePageInfoTracker(route, 'pop');
_handleNavigation(toRoute: previousRoute, fromRoute: route, action: RouteAction.pop, timestamp: now);
}