onGenerateRoute method
动态路由生成器
Implementation
GetPageRoute? onGenerateRoute(RouteSettings settings) {
for (var element in _modules.values) {
final route = element.onGenerateRoute(settings);
if (route != null) {
return route;
}
}
return null;
}