definitionOf method
Implementation
RouteDefinition definitionOf(AppRoute route) {
final type = route.runtimeType;
if(type == _homeType) {
return _homeDefinition;
}
switch(type) {
case HomeRoute: return _homeDefinition;
case NotFoundRoute: return _notFoundDefinition;
case ErrorRoute: return _errorDefinition;
}
assert(definitions.isSet(type), '$type not found');
return definitions.get(type);
}