createRoute method Null safety
- BuildContext context
factory">@factory
Creates the Route that corresponds to this page.
The created Route must have its Route.settings property set to this Page.
Implementation
@factory
Route<T> createRoute(BuildContext context);