initialRoute property

String? initialRoute
final

The name of the first route to show.

Defaults to Navigator.defaultRouteName.

The value is interpreted according to onGenerateInitialRoutes, which defaults to defaultGenerateInitialRoutes.

Changing the initialRoute will have no effect, as it only controls the initial route. To change the route while the application is running, use the static functions on this class, such as push or replace.

Implementation

final String? initialRoute;