Closed
Description
https://master-api.flutter.dev/flutter/widgets/WidgetsApp/pageRouteBuilder.html:
pageRouteBuilder property
PageRoute<T> Function<T>(
RouteSettings settings,
WidgetBuilder builder
) pageRouteBuilder
final
The PageRoute generator callback used when the app is navigated to a named route.
Source is:
/// The signature of [WidgetsApp.pageRouteBuilder].
///
/// Creates a [PageRoute] using the given [RouteSettings] and [WidgetBuilder].
typedef PageRouteFactory = PageRoute<T> Function<T>(RouteSettings settings, WidgetBuilder builder);
//...
/// The [PageRoute] generator callback used when the app is navigated to a
/// named route.
///
/// This callback can be used, for example, to specify that a [MaterialPageRoute]
/// or a [CupertinoPageRoute] should be used for building page transitions.
final PageRouteFactory pageRouteBuilder;
What's weird is that the actual signature is a typedef but that seems to get elided here?
Metadata
Metadata
Assignees
Labels
No labels