didPushNext method
Called when a new route has been pushed, and the current route is no longer visible.
Implementation
@override
void didPushNext() {
_timer?.cancel();
_timer=Timer(const Duration(milliseconds: 200), () {
String currentName=NavigatorManger().getClassName(context);
if (NavigatorManger().getLastPageName()!=currentName) {
onPause();
}
});
super.didPushNext();
}