NamedRouteDef constructor

NamedRouteDef({
  1. String? path,
  2. required String name,
  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. bool initial = false,
  13. bool allowSnapshotting = true,
  14. RestorationIdBuilder? restorationId,
  15. RouteType? type,
  16. 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));