MaterialRoute constructor
MaterialRoute({
- required PageInfo page,
- String? path,
- bool fullscreenDialog = false,
- bool maintainState = true,
- bool fullMatch = false,
- List<
AutoRouteGuard> guards = const [], - bool usesPathAsKey = false,
- List<
AutoRoute> ? children, - Map<
String, dynamic> meta = const {}, - TitleBuilder? title,
- bool keepHistory = true,
- RestorationIdBuilder? restorationId,
- bool initial = false,
- bool allowSnapshotting = true,
- bool enablePredictiveBackGesture = false,
- RouteTransitionsBuilder? predictiveBackPageTransitionsBuilder,
default constructor
Implementation
MaterialRoute({
required super.page,
super.path,
super.fullscreenDialog,
super.maintainState,
super.fullMatch = false,
super.guards,
super.usesPathAsKey = false,
super.children,
super.meta = const {},
super.title,
super.keepHistory,
super.restorationId,
super.initial,
super.allowSnapshotting = true,
bool enablePredictiveBackGesture = false,
RouteTransitionsBuilder? predictiveBackPageTransitionsBuilder,
}) : super._(
type: RouteType.material(
enablePredictiveBackGesture: enablePredictiveBackGesture,
predictiveBackPageTransitionsBuilder: predictiveBackPageTransitionsBuilder,
),
);