NamedRouteDef.shell constructor

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

Creates a guarded route

Implementation

NamedRouteDef.shell({
  required String name,
  super.path,
  super.fullscreenDialog,
  super.maintainState,
  super.fullMatch = false,
  super.usesPathAsKey = false,
  required super.children,
  super.guards,
  super.meta = const {},
  super.title,
  super.keepHistory,
  super.initial,
  super.allowSnapshotting = true,
  super.restorationId,
  super.type,
}) : super._(page: PageInfo.emptyShell(name));