basic_page_router.gr.dart 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145
  1. // GENERATED CODE - DO NOT MODIFY BY HAND
  2. // **************************************************************************
  3. // AutoRouterGenerator
  4. // **************************************************************************
  5. // ignore_for_file: type=lint
  6. // coverage:ignore-file
  7. part of 'basic_page_router.dart';
  8. abstract class _$BasicPageRouter extends RootStackRouter {
  9. // ignore: unused_element
  10. _$BasicPageRouter({super.navigatorKey});
  11. @override
  12. final Map<String, PageFactory> pagesMap = {
  13. GlobalWebPageRoute.name: (routeData) {
  14. final pathParams = routeData.inheritedPathParams;
  15. final args = routeData.argsAs<GlobalWebPageRouteArgs>(
  16. orElse: () => GlobalWebPageRouteArgs(
  17. isShowAppBar: pathParams.getBool('isShowAppBar'),
  18. initialUrl: pathParams.getString('initialUrl'),
  19. title: pathParams.getString('title'),
  20. ));
  21. return AutoRoutePage<dynamic>(
  22. routeData: routeData,
  23. child: GlobalWebPage(
  24. key: args.key,
  25. isShowAppBar: args.isShowAppBar,
  26. initialUrl: args.initialUrl,
  27. title: args.title,
  28. ),
  29. );
  30. },
  31. PreviewPhotoPageRoute.name: (routeData) {
  32. final args = routeData.argsAs<PreviewPhotoPageRouteArgs>();
  33. return AutoRoutePage<dynamic>(
  34. routeData: routeData,
  35. child: PreviewPhotoPage(
  36. key: args.key,
  37. images: args.images,
  38. position: args.position,
  39. ),
  40. );
  41. },
  42. };
  43. }
  44. /// generated route for
  45. /// [GlobalWebPage]
  46. class GlobalWebPageRoute extends PageRouteInfo<GlobalWebPageRouteArgs> {
  47. GlobalWebPageRoute({
  48. Key? key,
  49. required bool isShowAppBar,
  50. required String initialUrl,
  51. required String title,
  52. List<PageRouteInfo>? children,
  53. }) : super(
  54. GlobalWebPageRoute.name,
  55. args: GlobalWebPageRouteArgs(
  56. key: key,
  57. isShowAppBar: isShowAppBar,
  58. initialUrl: initialUrl,
  59. title: title,
  60. ),
  61. rawPathParams: {
  62. 'isShowAppBar': isShowAppBar,
  63. 'initialUrl': initialUrl,
  64. 'title': title,
  65. },
  66. initialChildren: children,
  67. );
  68. static const String name = 'GlobalWebPageRoute';
  69. static const PageInfo<GlobalWebPageRouteArgs> page =
  70. PageInfo<GlobalWebPageRouteArgs>(name);
  71. }
  72. class GlobalWebPageRouteArgs {
  73. const GlobalWebPageRouteArgs({
  74. this.key,
  75. required this.isShowAppBar,
  76. required this.initialUrl,
  77. required this.title,
  78. });
  79. final Key? key;
  80. final bool isShowAppBar;
  81. final String initialUrl;
  82. final String title;
  83. @override
  84. String toString() {
  85. return 'GlobalWebPageRouteArgs{key: $key, isShowAppBar: $isShowAppBar, initialUrl: $initialUrl, title: $title}';
  86. }
  87. }
  88. /// generated route for
  89. /// [PreviewPhotoPage]
  90. class PreviewPhotoPageRoute extends PageRouteInfo<PreviewPhotoPageRouteArgs> {
  91. PreviewPhotoPageRoute({
  92. Key? key,
  93. required List<String> images,
  94. required int position,
  95. List<PageRouteInfo>? children,
  96. }) : super(
  97. PreviewPhotoPageRoute.name,
  98. args: PreviewPhotoPageRouteArgs(
  99. key: key,
  100. images: images,
  101. position: position,
  102. ),
  103. initialChildren: children,
  104. );
  105. static const String name = 'PreviewPhotoPageRoute';
  106. static const PageInfo<PreviewPhotoPageRouteArgs> page =
  107. PageInfo<PreviewPhotoPageRouteArgs>(name);
  108. }
  109. class PreviewPhotoPageRouteArgs {
  110. const PreviewPhotoPageRouteArgs({
  111. this.key,
  112. required this.images,
  113. required this.position,
  114. });
  115. final Key? key;
  116. final List<String> images;
  117. final int position;
  118. @override
  119. String toString() {
  120. return 'PreviewPhotoPageRouteArgs{key: $key, images: $images, position: $position}';
  121. }
  122. }