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) {
DSMetrica._screenNames.remove(DSMetrica._normalizeScreenName(route.settings.name));
final name = DSMetrica._screenNames.isNotEmpty
? DSMetrica._screenNames.last
: '/';
DSMetrica.reportScreenOpened(name);
super.didPop(route, previousRoute);
}