PageRouteFactory typedef

PageRoute PageRouteFactory (RouteSettings settings, WidgetBuilder builder)

The signature of WidgetsApp.pageRouteBuilder.

Creates a PageRoute using the given RouteSettings and WidgetBuilder.

Implementation

// TODO(dnfield): when https://github.com/dart-lang/sdk/issues/34572 is resolved
// this can use type arguments again
typedef PageRouteFactory = PageRoute<dynamic> Function(RouteSettings settings, WidgetBuilder builder);