didPushNext method

  1. @override
void didPushNext()
override

Called when a new route has been pushed, and the current route is no longer visible.

Implementation

@override
void didPushNext() {
  if (_isTop) {
    _isTop = false;
    onPause(_routeName ?? "", _arguments);
    _pageLifecycle?.onPause(_routeName ?? "", _arguments);
  }
  super.didPushNext();
}