didPopNext method

  1. @override
void didPopNext()
override

Called when the top route has been popped off, and the current route shows up.

Implementation

@override
void didPopNext() {
  if(isAddStack()){
    String currentName=NavigatorManger().getClassName(context);
    if (NavigatorManger().getCurrentPageName()==currentName) {
      onResume();
    }
  }

  super.didPopNext();
}