static FxRoute? getRouteFromName(String routeName){ for(FxRoute route in _routes){ if(route.name.compareTo(routeName)==0) return route; } return null; }