routeExists static method

Future<bool> routeExists(
  1. String routeName
)

判断路由routeName是否存在

Implementation

static Future<bool> routeExists(String routeName) async {
  bool exists = navigatorObserver.routeExists(routeName);
  if (exists) {
    return exists;
  }
  return await _nativeNavigator.routeExists(routeName);
}