AdaptiveRoute constructor

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

Default constructor

Implementation

AdaptiveRoute({
  required PageInfo page,
  super.fullscreenDialog,
  super.maintainState,
  super.fullMatch = false,
  super.initial,
  super.guards,
  super.usesPathAsKey = false,
  super.path,
  super.children,
  super.meta = const {},
  super.title,
  super.restorationId,
  bool opaque = true,
  super.keepHistory,
  super.allowSnapshotting = true,
}) : super._(
        name: page.name,
        type: RouteType.adaptive(opaque: opaque),
      );