routeExists static method
判断路由routeName是否存在
Implementation
static Future<bool> routeExists(String routeName) async {
bool exists = navigatorObserver.routeExists(routeName);
if (exists) {
return exists;
}
return await _nativeNavigator.routeExists(routeName);
}