NamedRouteDef constructor
NamedRouteDef({
- String? path,
- required String name,
- 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,
- bool initial = false,
- bool allowSnapshotting = true,
- RestorationIdBuilder? restorationId,
- RouteType? type,
- required WidgetBuilderWithData builder,
Default constructor
Implementation
NamedRouteDef({
super.path,
required String name,
super.fullscreenDialog,
super.maintainState,
super.fullMatch = false,
super.guards,
super.usesPathAsKey = false,
super.children,
super.meta = const {},
super.title,
super.keepHistory,
super.initial,
super.allowSnapshotting = true,
super.restorationId,
super.type,
required WidgetBuilderWithData builder,
}) : super._(page: PageInfo.builder(name, builder: builder));