routes property
Aggregates all ModularRoute
type Objects to the context,
Implementation
@override
List<ModularRoute> get routes => this
.initRoutes(this.moduleName())
.map<ModularRoute>(
(route) => route.module != null
? ModuleRoute(
route.routerName,
module: route.module as Module,
customTransition: route.customTransition,
transition: route.transition,
)
: ChildRoute(
route.routerName,
child: route.page != null
? (c, args) => pageGuardWrapper(route, c, args)
: (c, a) => Container(),
customTransition: route.customTransition,
transition: route.transition,
),
)
.toList();