Open koalababy2024 opened 4 years ago
class CusomObserver extends NavigatorObserver{ @override void didPop(Route<dynamic> route, Route<dynamic> previousRoute) { print("*****************"); print(route); print("*****************"); print(route.navigator.context); print("*****************"); print(route.settings.name); if ("vehicle_manager" == route.settings.name){ PageRoutes pageRoutes = routes as PageRoutes; Page page = pageRoutes.pages[route.settings.name]; page as VehicleManagerPage //这里想要获取到了具体的page } print("*****************"); } }
怎么执行这个page内effect中的一个action呢?
怎么执行这个page内effect中的一个action呢?