read-only
The widget for the default route of the app
(Navigator.defaultRouteName, which is '/'
).
This is the page that is displayed first when the application is started normally.
To be able to directly call Theme.of, MediaQuery.of, LocaleQuery.of, etc, in the code sets the home argument in the constructor, you can use a Builder widget to get a BuildContext.
If this is not specified, then either the route with name '/'
must be given in routes, or the onGenerateRoute callback
must be able to build a widget for that route.