rewards_page_router.gr.dart 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650
  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 'rewards_page_router.dart';
  8. abstract class _$RewardsPageRouter extends RootStackRouter {
  9. // ignore: unused_element
  10. _$RewardsPageRouter({super.navigatorKey});
  11. @override
  12. final Map<String, PageFactory> pagesMap = {
  13. RewardsAddressPageRoute.name: (routeData) {
  14. return AutoRoutePage<dynamic>(
  15. routeData: routeData,
  16. child: const RewardsAddressPage(),
  17. );
  18. },
  19. RewardsCodePageRoute.name: (routeData) {
  20. final pathParams = routeData.inheritedPathParams;
  21. final args = routeData.argsAs<RewardsCodePageRouteArgs>(
  22. orElse: () =>
  23. RewardsCodePageRouteArgs(code: pathParams.optInt('code')));
  24. return AutoRoutePage<dynamic>(
  25. routeData: routeData,
  26. child: RewardsCodePage(
  27. key: args.key,
  28. code: args.code,
  29. ),
  30. );
  31. },
  32. RewardsConfirmPageRoute.name: (routeData) {
  33. final pathParams = routeData.inheritedPathParams;
  34. final args = routeData.argsAs<RewardsConfirmPageRouteArgs>(
  35. orElse: () =>
  36. RewardsConfirmPageRouteArgs(id: pathParams.optInt('id')));
  37. return AutoRoutePage<dynamic>(
  38. routeData: routeData,
  39. child: RewardsConfirmPage(
  40. key: args.key,
  41. id: args.id,
  42. ),
  43. );
  44. },
  45. RewardsDetailPageRoute.name: (routeData) {
  46. final pathParams = routeData.inheritedPathParams;
  47. final args = routeData.argsAs<RewardsDetailPageRouteArgs>(
  48. orElse: () =>
  49. RewardsDetailPageRouteArgs(id: pathParams.optInt('id')));
  50. return AutoRoutePage<dynamic>(
  51. routeData: routeData,
  52. child: RewardsDetailPage(
  53. key: args.key,
  54. id: args.id,
  55. ),
  56. );
  57. },
  58. RewardsHistoryEarnedPageRoute.name: (routeData) {
  59. return AutoRoutePage<dynamic>(
  60. routeData: routeData,
  61. child: const RewardsHistoryEarnedPage(),
  62. );
  63. },
  64. RewardsHistoryPageRoute.name: (routeData) {
  65. return AutoRoutePage<dynamic>(
  66. routeData: routeData,
  67. child: const RewardsHistoryPage(),
  68. );
  69. },
  70. RewardsHistorySpentPageRoute.name: (routeData) {
  71. return AutoRoutePage<dynamic>(
  72. routeData: routeData,
  73. child: const RewardsHistorySpentPage(),
  74. );
  75. },
  76. RewardsSuccessfulPageRoute.name: (routeData) {
  77. final pathParams = routeData.inheritedPathParams;
  78. final args = routeData.argsAs<RewardsSuccessfulPageRouteArgs>(
  79. orElse: () => RewardsSuccessfulPageRouteArgs(
  80. amount: pathParams.optInt('amount'),
  81. title: pathParams.optString('title'),
  82. resources: pathParams.optString('resources'),
  83. redeemedDate: pathParams.optString('redeemedDate'),
  84. createdAt: pathParams.optString('createdAt'),
  85. ));
  86. return AutoRoutePage<dynamic>(
  87. routeData: routeData,
  88. child: RewardsSuccessfulPage(
  89. key: args.key,
  90. amount: args.amount,
  91. title: args.title,
  92. resources: args.resources,
  93. redeemedDate: args.redeemedDate,
  94. createdAt: args.createdAt,
  95. ),
  96. );
  97. },
  98. RewardsHomePageRoute.name: (routeData) {
  99. final pathParams = routeData.inheritedPathParams;
  100. final args = routeData.argsAs<RewardsHomePageRouteArgs>(
  101. orElse: () =>
  102. RewardsHomePageRouteArgs(points: pathParams.optInt('points')));
  103. return AutoRoutePage<dynamic>(
  104. routeData: routeData,
  105. child: RewardsHomePage(
  106. key: args.key,
  107. points: args.points,
  108. ),
  109. );
  110. },
  111. RewardsListPageRoute.name: (routeData) {
  112. return AutoRoutePage<dynamic>(
  113. routeData: routeData,
  114. child: const RewardsListPage(),
  115. );
  116. },
  117. RewardsMyActivePageRoute.name: (routeData) {
  118. return AutoRoutePage<dynamic>(
  119. routeData: routeData,
  120. child: const RewardsMyActivePage(),
  121. );
  122. },
  123. RewardsMyExpiredPageRoute.name: (routeData) {
  124. return AutoRoutePage<dynamic>(
  125. routeData: routeData,
  126. child: const RewardsMyExpiredPage(),
  127. );
  128. },
  129. RewardsMyPageRoute.name: (routeData) {
  130. return AutoRoutePage<dynamic>(
  131. routeData: routeData,
  132. child: const RewardsMyPage(),
  133. );
  134. },
  135. RewardsMyUsedPageRoute.name: (routeData) {
  136. return AutoRoutePage<dynamic>(
  137. routeData: routeData,
  138. child: const RewardsMyUsedPage(),
  139. );
  140. },
  141. RewardsPageRoute.name: (routeData) {
  142. return AutoRoutePage<dynamic>(
  143. routeData: routeData,
  144. child: const RewardsPage(),
  145. );
  146. },
  147. RewardsRedeemPageRoute.name: (routeData) {
  148. final pathParams = routeData.inheritedPathParams;
  149. final args = routeData.argsAs<RewardsRedeemPageRouteArgs>(
  150. orElse: () =>
  151. RewardsRedeemPageRouteArgs(id: pathParams.optInt('id')));
  152. return AutoRoutePage<dynamic>(
  153. routeData: routeData,
  154. child: RewardsRedeemPage(
  155. key: args.key,
  156. id: args.id,
  157. ),
  158. );
  159. },
  160. RewardsSearchPageRoute.name: (routeData) {
  161. return AutoRoutePage<dynamic>(
  162. routeData: routeData,
  163. child: const RewardsSearchPage(),
  164. );
  165. },
  166. RewardsTransactionPageRoute.name: (routeData) {
  167. final pathParams = routeData.inheritedPathParams;
  168. final args = routeData.argsAs<RewardsTransactionPageRouteArgs>(
  169. orElse: () => RewardsTransactionPageRouteArgs(
  170. id: pathParams.optInt('id'),
  171. type: pathParams.optString('type'),
  172. ));
  173. return AutoRoutePage<dynamic>(
  174. routeData: routeData,
  175. child: RewardsTransactionPage(
  176. key: args.key,
  177. id: args.id,
  178. type: args.type,
  179. ),
  180. );
  181. },
  182. };
  183. }
  184. /// generated route for
  185. /// [RewardsAddressPage]
  186. class RewardsAddressPageRoute extends PageRouteInfo<void> {
  187. const RewardsAddressPageRoute({List<PageRouteInfo>? children})
  188. : super(
  189. RewardsAddressPageRoute.name,
  190. initialChildren: children,
  191. );
  192. static const String name = 'RewardsAddressPageRoute';
  193. static const PageInfo<void> page = PageInfo<void>(name);
  194. }
  195. /// generated route for
  196. /// [RewardsCodePage]
  197. class RewardsCodePageRoute extends PageRouteInfo<RewardsCodePageRouteArgs> {
  198. RewardsCodePageRoute({
  199. Key? key,
  200. required int? code,
  201. List<PageRouteInfo>? children,
  202. }) : super(
  203. RewardsCodePageRoute.name,
  204. args: RewardsCodePageRouteArgs(
  205. key: key,
  206. code: code,
  207. ),
  208. rawPathParams: {'code': code},
  209. initialChildren: children,
  210. );
  211. static const String name = 'RewardsCodePageRoute';
  212. static const PageInfo<RewardsCodePageRouteArgs> page =
  213. PageInfo<RewardsCodePageRouteArgs>(name);
  214. }
  215. class RewardsCodePageRouteArgs {
  216. const RewardsCodePageRouteArgs({
  217. this.key,
  218. required this.code,
  219. });
  220. final Key? key;
  221. final int? code;
  222. @override
  223. String toString() {
  224. return 'RewardsCodePageRouteArgs{key: $key, code: $code}';
  225. }
  226. }
  227. /// generated route for
  228. /// [RewardsConfirmPage]
  229. class RewardsConfirmPageRoute
  230. extends PageRouteInfo<RewardsConfirmPageRouteArgs> {
  231. RewardsConfirmPageRoute({
  232. Key? key,
  233. required int? id,
  234. List<PageRouteInfo>? children,
  235. }) : super(
  236. RewardsConfirmPageRoute.name,
  237. args: RewardsConfirmPageRouteArgs(
  238. key: key,
  239. id: id,
  240. ),
  241. rawPathParams: {'id': id},
  242. initialChildren: children,
  243. );
  244. static const String name = 'RewardsConfirmPageRoute';
  245. static const PageInfo<RewardsConfirmPageRouteArgs> page =
  246. PageInfo<RewardsConfirmPageRouteArgs>(name);
  247. }
  248. class RewardsConfirmPageRouteArgs {
  249. const RewardsConfirmPageRouteArgs({
  250. this.key,
  251. required this.id,
  252. });
  253. final Key? key;
  254. final int? id;
  255. @override
  256. String toString() {
  257. return 'RewardsConfirmPageRouteArgs{key: $key, id: $id}';
  258. }
  259. }
  260. /// generated route for
  261. /// [RewardsDetailPage]
  262. class RewardsDetailPageRoute extends PageRouteInfo<RewardsDetailPageRouteArgs> {
  263. RewardsDetailPageRoute({
  264. Key? key,
  265. required int? id,
  266. List<PageRouteInfo>? children,
  267. }) : super(
  268. RewardsDetailPageRoute.name,
  269. args: RewardsDetailPageRouteArgs(
  270. key: key,
  271. id: id,
  272. ),
  273. rawPathParams: {'id': id},
  274. initialChildren: children,
  275. );
  276. static const String name = 'RewardsDetailPageRoute';
  277. static const PageInfo<RewardsDetailPageRouteArgs> page =
  278. PageInfo<RewardsDetailPageRouteArgs>(name);
  279. }
  280. class RewardsDetailPageRouteArgs {
  281. const RewardsDetailPageRouteArgs({
  282. this.key,
  283. required this.id,
  284. });
  285. final Key? key;
  286. final int? id;
  287. @override
  288. String toString() {
  289. return 'RewardsDetailPageRouteArgs{key: $key, id: $id}';
  290. }
  291. }
  292. /// generated route for
  293. /// [RewardsHistoryEarnedPage]
  294. class RewardsHistoryEarnedPageRoute extends PageRouteInfo<void> {
  295. const RewardsHistoryEarnedPageRoute({List<PageRouteInfo>? children})
  296. : super(
  297. RewardsHistoryEarnedPageRoute.name,
  298. initialChildren: children,
  299. );
  300. static const String name = 'RewardsHistoryEarnedPageRoute';
  301. static const PageInfo<void> page = PageInfo<void>(name);
  302. }
  303. /// generated route for
  304. /// [RewardsHistoryPage]
  305. class RewardsHistoryPageRoute extends PageRouteInfo<void> {
  306. const RewardsHistoryPageRoute({List<PageRouteInfo>? children})
  307. : super(
  308. RewardsHistoryPageRoute.name,
  309. initialChildren: children,
  310. );
  311. static const String name = 'RewardsHistoryPageRoute';
  312. static const PageInfo<void> page = PageInfo<void>(name);
  313. }
  314. /// generated route for
  315. /// [RewardsHistorySpentPage]
  316. class RewardsHistorySpentPageRoute extends PageRouteInfo<void> {
  317. const RewardsHistorySpentPageRoute({List<PageRouteInfo>? children})
  318. : super(
  319. RewardsHistorySpentPageRoute.name,
  320. initialChildren: children,
  321. );
  322. static const String name = 'RewardsHistorySpentPageRoute';
  323. static const PageInfo<void> page = PageInfo<void>(name);
  324. }
  325. /// generated route for
  326. /// [RewardsHomePage]
  327. class RewardsHomePageRoute extends PageRouteInfo<RewardsHomePageRouteArgs> {
  328. RewardsHomePageRoute({
  329. Key? key,
  330. required int? points,
  331. List<PageRouteInfo>? children,
  332. }) : super(
  333. RewardsHomePageRoute.name,
  334. args: RewardsHomePageRouteArgs(
  335. key: key,
  336. points: points,
  337. ),
  338. rawPathParams: {'points': points},
  339. initialChildren: children,
  340. );
  341. static const String name = 'RewardsHomePageRoute';
  342. static const PageInfo<RewardsHomePageRouteArgs> page =
  343. PageInfo<RewardsHomePageRouteArgs>(name);
  344. }
  345. class RewardsHomePageRouteArgs {
  346. const RewardsHomePageRouteArgs({
  347. this.key,
  348. required this.points,
  349. });
  350. final Key? key;
  351. final int? points;
  352. @override
  353. String toString() {
  354. return 'RewardsHomePageRouteArgs{key: $key, points: $points}';
  355. }
  356. }
  357. /// generated route for
  358. /// [RewardsListPage]
  359. class RewardsListPageRoute extends PageRouteInfo<void> {
  360. const RewardsListPageRoute({List<PageRouteInfo>? children})
  361. : super(
  362. RewardsListPageRoute.name,
  363. initialChildren: children,
  364. );
  365. static const String name = 'RewardsListPageRoute';
  366. static const PageInfo<void> page = PageInfo<void>(name);
  367. }
  368. /// generated route for
  369. /// [RewardsMyActivePage]
  370. class RewardsMyActivePageRoute extends PageRouteInfo<void> {
  371. const RewardsMyActivePageRoute({List<PageRouteInfo>? children})
  372. : super(
  373. RewardsMyActivePageRoute.name,
  374. initialChildren: children,
  375. );
  376. static const String name = 'RewardsMyActivePageRoute';
  377. static const PageInfo<void> page = PageInfo<void>(name);
  378. }
  379. /// generated route for
  380. /// [RewardsMyExpiredPage]
  381. class RewardsMyExpiredPageRoute extends PageRouteInfo<void> {
  382. const RewardsMyExpiredPageRoute({List<PageRouteInfo>? children})
  383. : super(
  384. RewardsMyExpiredPageRoute.name,
  385. initialChildren: children,
  386. );
  387. static const String name = 'RewardsMyExpiredPageRoute';
  388. static const PageInfo<void> page = PageInfo<void>(name);
  389. }
  390. /// generated route for
  391. /// [RewardsMyPage]
  392. class RewardsMyPageRoute extends PageRouteInfo<void> {
  393. const RewardsMyPageRoute({List<PageRouteInfo>? children})
  394. : super(
  395. RewardsMyPageRoute.name,
  396. initialChildren: children,
  397. );
  398. static const String name = 'RewardsMyPageRoute';
  399. static const PageInfo<void> page = PageInfo<void>(name);
  400. }
  401. /// generated route for
  402. /// [RewardsMyUsedPage]
  403. class RewardsMyUsedPageRoute extends PageRouteInfo<void> {
  404. const RewardsMyUsedPageRoute({List<PageRouteInfo>? children})
  405. : super(
  406. RewardsMyUsedPageRoute.name,
  407. initialChildren: children,
  408. );
  409. static const String name = 'RewardsMyUsedPageRoute';
  410. static const PageInfo<void> page = PageInfo<void>(name);
  411. }
  412. /// generated route for
  413. /// [RewardsPage]
  414. class RewardsPageRoute extends PageRouteInfo<void> {
  415. const RewardsPageRoute({List<PageRouteInfo>? children})
  416. : super(
  417. RewardsPageRoute.name,
  418. initialChildren: children,
  419. );
  420. static const String name = 'RewardsPageRoute';
  421. static const PageInfo<void> page = PageInfo<void>(name);
  422. }
  423. /// generated route for
  424. /// [RewardsRedeemPage]
  425. class RewardsRedeemPageRoute extends PageRouteInfo<RewardsRedeemPageRouteArgs> {
  426. RewardsRedeemPageRoute({
  427. Key? key,
  428. required int? id,
  429. List<PageRouteInfo>? children,
  430. }) : super(
  431. RewardsRedeemPageRoute.name,
  432. args: RewardsRedeemPageRouteArgs(
  433. key: key,
  434. id: id,
  435. ),
  436. rawPathParams: {'id': id},
  437. initialChildren: children,
  438. );
  439. static const String name = 'RewardsRedeemPageRoute';
  440. static const PageInfo<RewardsRedeemPageRouteArgs> page =
  441. PageInfo<RewardsRedeemPageRouteArgs>(name);
  442. }
  443. class RewardsRedeemPageRouteArgs {
  444. const RewardsRedeemPageRouteArgs({
  445. this.key,
  446. required this.id,
  447. });
  448. final Key? key;
  449. final int? id;
  450. @override
  451. String toString() {
  452. return 'RewardsRedeemPageRouteArgs{key: $key, id: $id}';
  453. }
  454. }
  455. /// generated route for
  456. /// [RewardsSearchPage]
  457. class RewardsSearchPageRoute extends PageRouteInfo<void> {
  458. const RewardsSearchPageRoute({List<PageRouteInfo>? children})
  459. : super(
  460. RewardsSearchPageRoute.name,
  461. initialChildren: children,
  462. );
  463. static const String name = 'RewardsSearchPageRoute';
  464. static const PageInfo<void> page = PageInfo<void>(name);
  465. }
  466. /// generated route for
  467. /// [RewardsSuccessfulPage]
  468. class RewardsSuccessfulPageRoute
  469. extends PageRouteInfo<RewardsSuccessfulPageRouteArgs> {
  470. RewardsSuccessfulPageRoute({
  471. Key? key,
  472. required int? amount,
  473. required String? title,
  474. required String? resources,
  475. required String? redeemedDate,
  476. required String? createdAt,
  477. List<PageRouteInfo>? children,
  478. }) : super(
  479. RewardsSuccessfulPageRoute.name,
  480. args: RewardsSuccessfulPageRouteArgs(
  481. key: key,
  482. amount: amount,
  483. title: title,
  484. resources: resources,
  485. redeemedDate: redeemedDate,
  486. createdAt: createdAt,
  487. ),
  488. rawPathParams: {
  489. 'amount': amount,
  490. 'title': title,
  491. 'resources': resources,
  492. 'redeemedDate': redeemedDate,
  493. 'createdAt': createdAt,
  494. },
  495. initialChildren: children,
  496. );
  497. static const String name = 'RewardsSuccessfulPageRoute';
  498. static const PageInfo<RewardsSuccessfulPageRouteArgs> page =
  499. PageInfo<RewardsSuccessfulPageRouteArgs>(name);
  500. }
  501. class RewardsSuccessfulPageRouteArgs {
  502. const RewardsSuccessfulPageRouteArgs({
  503. this.key,
  504. required this.amount,
  505. required this.title,
  506. required this.resources,
  507. required this.redeemedDate,
  508. required this.createdAt,
  509. });
  510. final Key? key;
  511. final int? amount;
  512. final String? title;
  513. final String? resources;
  514. final String? redeemedDate;
  515. final String? createdAt;
  516. @override
  517. String toString() {
  518. return 'RewardsSuccessfulPageRouteArgs{key: $key, amount: $amount, title: $title, resources: $resources, redeemedDate: $redeemedDate, createdAt: $createdAt}';
  519. }
  520. }
  521. /// generated route for
  522. /// [RewardsTransactionPage]
  523. class RewardsTransactionPageRoute
  524. extends PageRouteInfo<RewardsTransactionPageRouteArgs> {
  525. RewardsTransactionPageRoute({
  526. Key? key,
  527. required int? id,
  528. required String? type,
  529. List<PageRouteInfo>? children,
  530. }) : super(
  531. RewardsTransactionPageRoute.name,
  532. args: RewardsTransactionPageRouteArgs(
  533. key: key,
  534. id: id,
  535. type: type,
  536. ),
  537. rawPathParams: {
  538. 'id': id,
  539. 'type': type,
  540. },
  541. initialChildren: children,
  542. );
  543. static const String name = 'RewardsTransactionPageRoute';
  544. static const PageInfo<RewardsTransactionPageRouteArgs> page =
  545. PageInfo<RewardsTransactionPageRouteArgs>(name);
  546. }
  547. class RewardsTransactionPageRouteArgs {
  548. const RewardsTransactionPageRouteArgs({
  549. this.key,
  550. required this.id,
  551. required this.type,
  552. });
  553. final Key? key;
  554. final int? id;
  555. final String? type;
  556. @override
  557. String toString() {
  558. return 'RewardsTransactionPageRouteArgs{key: $key, id: $id, type: $type}';
  559. }
  560. }