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