routes property
final
The application's top-level routing table.
Maps route names to widget builders. When navigating to a named route, the corresponding builder is called to create the route's content.
In tests, routes are built using pageRouteBuilder, which defaults to zero-duration transitions for instant navigation without waiting for animations.
Defaults to an empty map.
See also:
- WidgetsApp.routes, the equivalent property in WidgetsApp.
Implementation
final Map<String, WidgetBuilder> routes;