popAndPushNamed<T extends Object?, TO extends Object?>(BuildContext context, String routeName, {TO? result, Object? arguments}) → Future<T?>
Pop the current route off the navigator that most tightly encloses the given context and push a named route in its place.
使用 navigatorObservers 获取界面跳转通知
使用自定义Navigator进行拦截
tools.dart
MyCuPageA
如果accToken存在,跳转界面时候我们可以在自定义导航中检查accToken是否过期;在跳转到登录界面的时候可以使用下面方法
https://api.flutter.dev/flutter/widgets/Navigator-class.html#constructors