didPop method

  1. @override
void didPop(
  1. Route route,
  2. Route? previousRoute
)
override

Called when a route is popped from the navigator.

The route parameter represents the route being popped from the navigator. The previousRoute parameter represents the route that will now be on top of the navigator.

Implementation

@override
void didPop(Route<dynamic> route, Route<dynamic>? previousRoute) {
  PluginTealeaf.logScreenViewContextUnLoad(route.settings.name.toString(),
      previousRoute != null ? previousRoute.settings.name.toString() : "");

  tlLogger.v(
      'PluginTealeaf.logScreenViewContextUnLoad -Popped ${route.settings.name}');
}