addRoutes method
Add a list of routes at once.
Implementation
void addRoutes(List<NyRouterRoute> routes) {
if (routes.isNotEmpty) {
for (var route in routes) {
_addRoute(route);
}
}
NyNavigator.instance.router = this;
}
Add a list of routes at once.
void addRoutes(List<NyRouterRoute> routes) {
if (routes.isNotEmpty) {
for (var route in routes) {
_addRoute(route);
}
}
NyNavigator.instance.router = this;
}