routes property

Map<String, WidgetBuilder> routes
final

This tab view's routing table.

When a named route is pushed with Navigator.pushNamed inside this tab view, the route name is looked up in this map. If the name is present, the associated WidgetBuilder is used to construct a CupertinoPageRoute that performs an appropriate transition to the new route.

If the tab view only has one page, then you can specify it using builder instead.

If builder is specified, then it implies an entry in this table for the Navigator.defaultRouteName route (/), and it is an error to redundantly provide such a route in the routes table.

If a route is requested that is not specified in this table (or by builder), then the onGenerateRoute callback is called to build the page instead.

This routing table is not shared with any routing tables of ancestor or descendant Navigators.

Implementation

final Map<String, WidgetBuilder> routes