PageRouteFactory typedef Null safety

PageRouteFactory = PageRoute<T> Function<T>(RouteSettings settings, WidgetBuilder builder)

The signature of WidgetsApp.pageRouteBuilder.

Creates a PageRoute using the given RouteSettings and WidgetBuilder.

Implementation

typedef PageRouteFactory = PageRoute<T> Function<T>(RouteSettings settings, WidgetBuilder builder);