containsRoutes method
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;
}