routes property

Map<String, WidgetBuilder> routes
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:

Implementation

final Map<String, WidgetBuilder> routes;