routeCount method

int routeCount({
  1. List<String> ruleOutRouteNames = const [],
})

统计路由数 ruleOutRouteNames 排除统计的路由

Implementation

int routeCount({List<String> ruleOutRouteNames = const []}) {
  var routes = CloudRouteObserver.instance.duplicateRemovalRoutes(ruleOutRouteNames: ruleOutRouteNames);
  return routes.length;
}