getDebugInfo method
Get debug information about registered routes
Returns a map containing:
routeControllers: Map of route names to controller typesrouteControllerTags: Map of route names to controller tagsrouteScopes: Map of route names to scope names/IDs
Useful for debugging route configuration issues.
Implementation
Map<String, dynamic> getDebugInfo() {
return {
'routeControllers': _routeControllers
.map((k, v) => MapEntry(k, v.map((t) => t.toString()).toList())),
'routeControllerTags': Map.from(_routeControllerTags),
'routeScopes': _routeScopes.map((k, v) => MapEntry(k, v.name ?? v.id)),
'totalRoutes': _routeControllers.length + _routeControllerTags.length,
};
}