containsRoutes method

bool containsRoutes(
  1. List<String> routes
)

Check if the router contains the routes.

Implementation

bool containsRoutes(List<String> routes) {
  List<String> allRouteNames = getRegisteredRouteNames();
  for (var route in routes) {
    if (!allRouteNames.contains(route)) {
      return false;
    }
  }
  return true;
}