MaterialRoute constructor

MaterialRoute({
  1. required PageInfo page,
  2. String? path,
  3. bool fullscreenDialog = false,
  4. bool maintainState = true,
  5. bool fullMatch = false,
  6. List<AutoRouteGuard> guards = const [],
  7. bool usesPathAsKey = false,
  8. List<AutoRoute>? children,
  9. Map<String, dynamic> meta = const {},
  10. TitleBuilder? title,
  11. bool keepHistory = true,
  12. RestorationIdBuilder? restorationId,
  13. bool initial = false,
  14. bool allowSnapshotting = true,
  15. bool enablePredictiveBackGesture = false,
  16. 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,
        ),
      );