didPop method

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

function for checking and handling routes Pop behavior and stop playing audio.

Implementation

@override
void didPop(Route<dynamic> route, Route<dynamic>? previousRoute) {
  if (previousRoute is PageRoute<dynamic>) {
    _handleRouteChanged(previousRoute);
  }
}