NamedRouteDef.shell constructor
NamedRouteDef.shell({
- required String name,
- String? path,
- bool fullscreenDialog = false,
- bool maintainState = true,
- bool fullMatch = false,
- bool usesPathAsKey = false,
- required List<
AutoRoute> ? children, - List<
AutoRouteGuard> guards = const [], - Map<
String, dynamic> meta = const {}, - TitleBuilder? title,
- bool keepHistory = true,
- bool initial = false,
- bool allowSnapshotting = true,
- RestorationIdBuilder? restorationId,
- 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));