removeRouteCache method

void removeRouteCache(
  1. String routeName
)

移除路由缓存 routeName 路由名称或路径

Implementation

void removeRouteCache(String routeName) {
  if (routeName.isEmptyString) {
    return;
  }
  var parse = RouteUriParse(routeName);
  var path = parse.withoutQueryPath;
  CloudRouteObserver.instance.remove(path);
}