createRoute method Null safety

  1. @factory
Route<T> createRoute(
  1. 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);