didPush method

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

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

Implementation

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