123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650 |
- // GENERATED CODE - DO NOT MODIFY BY HAND
- // **************************************************************************
- // AutoRouterGenerator
- // **************************************************************************
- // ignore_for_file: type=lint
- // coverage:ignore-file
- part of 'rewards_page_router.dart';
- abstract class _$RewardsPageRouter extends RootStackRouter {
- // ignore: unused_element
- _$RewardsPageRouter({super.navigatorKey});
- @override
- final Map<String, PageFactory> pagesMap = {
- RewardsAddressPageRoute.name: (routeData) {
- return AutoRoutePage<dynamic>(
- routeData: routeData,
- child: const RewardsAddressPage(),
- );
- },
- RewardsCodePageRoute.name: (routeData) {
- final pathParams = routeData.inheritedPathParams;
- final args = routeData.argsAs<RewardsCodePageRouteArgs>(
- orElse: () =>
- RewardsCodePageRouteArgs(code: pathParams.optInt('code')));
- return AutoRoutePage<dynamic>(
- routeData: routeData,
- child: RewardsCodePage(
- key: args.key,
- code: args.code,
- ),
- );
- },
- RewardsConfirmPageRoute.name: (routeData) {
- final pathParams = routeData.inheritedPathParams;
- final args = routeData.argsAs<RewardsConfirmPageRouteArgs>(
- orElse: () =>
- RewardsConfirmPageRouteArgs(id: pathParams.optInt('id')));
- return AutoRoutePage<dynamic>(
- routeData: routeData,
- child: RewardsConfirmPage(
- key: args.key,
- id: args.id,
- ),
- );
- },
- RewardsDetailPageRoute.name: (routeData) {
- final pathParams = routeData.inheritedPathParams;
- final args = routeData.argsAs<RewardsDetailPageRouteArgs>(
- orElse: () =>
- RewardsDetailPageRouteArgs(id: pathParams.optInt('id')));
- return AutoRoutePage<dynamic>(
- routeData: routeData,
- child: RewardsDetailPage(
- key: args.key,
- id: args.id,
- ),
- );
- },
- RewardsHistoryEarnedPageRoute.name: (routeData) {
- return AutoRoutePage<dynamic>(
- routeData: routeData,
- child: const RewardsHistoryEarnedPage(),
- );
- },
- RewardsHistoryPageRoute.name: (routeData) {
- return AutoRoutePage<dynamic>(
- routeData: routeData,
- child: const RewardsHistoryPage(),
- );
- },
- RewardsHistorySpentPageRoute.name: (routeData) {
- return AutoRoutePage<dynamic>(
- routeData: routeData,
- child: const RewardsHistorySpentPage(),
- );
- },
- RewardsSuccessfulPageRoute.name: (routeData) {
- final pathParams = routeData.inheritedPathParams;
- final args = routeData.argsAs<RewardsSuccessfulPageRouteArgs>(
- orElse: () => RewardsSuccessfulPageRouteArgs(
- amount: pathParams.optInt('amount'),
- title: pathParams.optString('title'),
- resources: pathParams.optString('resources'),
- redeemedDate: pathParams.optString('redeemedDate'),
- createdAt: pathParams.optString('createdAt'),
- ));
- return AutoRoutePage<dynamic>(
- routeData: routeData,
- child: RewardsSuccessfulPage(
- key: args.key,
- amount: args.amount,
- title: args.title,
- resources: args.resources,
- redeemedDate: args.redeemedDate,
- createdAt: args.createdAt,
- ),
- );
- },
- RewardsHomePageRoute.name: (routeData) {
- final pathParams = routeData.inheritedPathParams;
- final args = routeData.argsAs<RewardsHomePageRouteArgs>(
- orElse: () =>
- RewardsHomePageRouteArgs(points: pathParams.optInt('points')));
- return AutoRoutePage<dynamic>(
- routeData: routeData,
- child: RewardsHomePage(
- key: args.key,
- points: args.points,
- ),
- );
- },
- RewardsListPageRoute.name: (routeData) {
- return AutoRoutePage<dynamic>(
- routeData: routeData,
- child: const RewardsListPage(),
- );
- },
- RewardsMyActivePageRoute.name: (routeData) {
- return AutoRoutePage<dynamic>(
- routeData: routeData,
- child: const RewardsMyActivePage(),
- );
- },
- RewardsMyExpiredPageRoute.name: (routeData) {
- return AutoRoutePage<dynamic>(
- routeData: routeData,
- child: const RewardsMyExpiredPage(),
- );
- },
- RewardsMyPageRoute.name: (routeData) {
- return AutoRoutePage<dynamic>(
- routeData: routeData,
- child: const RewardsMyPage(),
- );
- },
- RewardsMyUsedPageRoute.name: (routeData) {
- return AutoRoutePage<dynamic>(
- routeData: routeData,
- child: const RewardsMyUsedPage(),
- );
- },
- RewardsPageRoute.name: (routeData) {
- return AutoRoutePage<dynamic>(
- routeData: routeData,
- child: const RewardsPage(),
- );
- },
- RewardsRedeemPageRoute.name: (routeData) {
- final pathParams = routeData.inheritedPathParams;
- final args = routeData.argsAs<RewardsRedeemPageRouteArgs>(
- orElse: () =>
- RewardsRedeemPageRouteArgs(id: pathParams.optInt('id')));
- return AutoRoutePage<dynamic>(
- routeData: routeData,
- child: RewardsRedeemPage(
- key: args.key,
- id: args.id,
- ),
- );
- },
- RewardsSearchPageRoute.name: (routeData) {
- return AutoRoutePage<dynamic>(
- routeData: routeData,
- child: const RewardsSearchPage(),
- );
- },
- RewardsTransactionPageRoute.name: (routeData) {
- final pathParams = routeData.inheritedPathParams;
- final args = routeData.argsAs<RewardsTransactionPageRouteArgs>(
- orElse: () => RewardsTransactionPageRouteArgs(
- id: pathParams.optInt('id'),
- type: pathParams.optString('type'),
- ));
- return AutoRoutePage<dynamic>(
- routeData: routeData,
- child: RewardsTransactionPage(
- key: args.key,
- id: args.id,
- type: args.type,
- ),
- );
- },
- };
- }
- /// generated route for
- /// [RewardsAddressPage]
- class RewardsAddressPageRoute extends PageRouteInfo<void> {
- const RewardsAddressPageRoute({List<PageRouteInfo>? children})
- : super(
- RewardsAddressPageRoute.name,
- initialChildren: children,
- );
- static const String name = 'RewardsAddressPageRoute';
- static const PageInfo<void> page = PageInfo<void>(name);
- }
- /// generated route for
- /// [RewardsCodePage]
- class RewardsCodePageRoute extends PageRouteInfo<RewardsCodePageRouteArgs> {
- RewardsCodePageRoute({
- Key? key,
- required int? code,
- List<PageRouteInfo>? children,
- }) : super(
- RewardsCodePageRoute.name,
- args: RewardsCodePageRouteArgs(
- key: key,
- code: code,
- ),
- rawPathParams: {'code': code},
- initialChildren: children,
- );
- static const String name = 'RewardsCodePageRoute';
- static const PageInfo<RewardsCodePageRouteArgs> page =
- PageInfo<RewardsCodePageRouteArgs>(name);
- }
- class RewardsCodePageRouteArgs {
- const RewardsCodePageRouteArgs({
- this.key,
- required this.code,
- });
- final Key? key;
- final int? code;
- @override
- String toString() {
- return 'RewardsCodePageRouteArgs{key: $key, code: $code}';
- }
- }
- /// generated route for
- /// [RewardsConfirmPage]
- class RewardsConfirmPageRoute
- extends PageRouteInfo<RewardsConfirmPageRouteArgs> {
- RewardsConfirmPageRoute({
- Key? key,
- required int? id,
- List<PageRouteInfo>? children,
- }) : super(
- RewardsConfirmPageRoute.name,
- args: RewardsConfirmPageRouteArgs(
- key: key,
- id: id,
- ),
- rawPathParams: {'id': id},
- initialChildren: children,
- );
- static const String name = 'RewardsConfirmPageRoute';
- static const PageInfo<RewardsConfirmPageRouteArgs> page =
- PageInfo<RewardsConfirmPageRouteArgs>(name);
- }
- class RewardsConfirmPageRouteArgs {
- const RewardsConfirmPageRouteArgs({
- this.key,
- required this.id,
- });
- final Key? key;
- final int? id;
- @override
- String toString() {
- return 'RewardsConfirmPageRouteArgs{key: $key, id: $id}';
- }
- }
- /// generated route for
- /// [RewardsDetailPage]
- class RewardsDetailPageRoute extends PageRouteInfo<RewardsDetailPageRouteArgs> {
- RewardsDetailPageRoute({
- Key? key,
- required int? id,
- List<PageRouteInfo>? children,
- }) : super(
- RewardsDetailPageRoute.name,
- args: RewardsDetailPageRouteArgs(
- key: key,
- id: id,
- ),
- rawPathParams: {'id': id},
- initialChildren: children,
- );
- static const String name = 'RewardsDetailPageRoute';
- static const PageInfo<RewardsDetailPageRouteArgs> page =
- PageInfo<RewardsDetailPageRouteArgs>(name);
- }
- class RewardsDetailPageRouteArgs {
- const RewardsDetailPageRouteArgs({
- this.key,
- required this.id,
- });
- final Key? key;
- final int? id;
- @override
- String toString() {
- return 'RewardsDetailPageRouteArgs{key: $key, id: $id}';
- }
- }
- /// generated route for
- /// [RewardsHistoryEarnedPage]
- class RewardsHistoryEarnedPageRoute extends PageRouteInfo<void> {
- const RewardsHistoryEarnedPageRoute({List<PageRouteInfo>? children})
- : super(
- RewardsHistoryEarnedPageRoute.name,
- initialChildren: children,
- );
- static const String name = 'RewardsHistoryEarnedPageRoute';
- static const PageInfo<void> page = PageInfo<void>(name);
- }
- /// generated route for
- /// [RewardsHistoryPage]
- class RewardsHistoryPageRoute extends PageRouteInfo<void> {
- const RewardsHistoryPageRoute({List<PageRouteInfo>? children})
- : super(
- RewardsHistoryPageRoute.name,
- initialChildren: children,
- );
- static const String name = 'RewardsHistoryPageRoute';
- static const PageInfo<void> page = PageInfo<void>(name);
- }
- /// generated route for
- /// [RewardsHistorySpentPage]
- class RewardsHistorySpentPageRoute extends PageRouteInfo<void> {
- const RewardsHistorySpentPageRoute({List<PageRouteInfo>? children})
- : super(
- RewardsHistorySpentPageRoute.name,
- initialChildren: children,
- );
- static const String name = 'RewardsHistorySpentPageRoute';
- static const PageInfo<void> page = PageInfo<void>(name);
- }
- /// generated route for
- /// [RewardsHomePage]
- class RewardsHomePageRoute extends PageRouteInfo<RewardsHomePageRouteArgs> {
- RewardsHomePageRoute({
- Key? key,
- required int? points,
- List<PageRouteInfo>? children,
- }) : super(
- RewardsHomePageRoute.name,
- args: RewardsHomePageRouteArgs(
- key: key,
- points: points,
- ),
- rawPathParams: {'points': points},
- initialChildren: children,
- );
- static const String name = 'RewardsHomePageRoute';
- static const PageInfo<RewardsHomePageRouteArgs> page =
- PageInfo<RewardsHomePageRouteArgs>(name);
- }
- class RewardsHomePageRouteArgs {
- const RewardsHomePageRouteArgs({
- this.key,
- required this.points,
- });
- final Key? key;
- final int? points;
- @override
- String toString() {
- return 'RewardsHomePageRouteArgs{key: $key, points: $points}';
- }
- }
- /// generated route for
- /// [RewardsListPage]
- class RewardsListPageRoute extends PageRouteInfo<void> {
- const RewardsListPageRoute({List<PageRouteInfo>? children})
- : super(
- RewardsListPageRoute.name,
- initialChildren: children,
- );
- static const String name = 'RewardsListPageRoute';
- static const PageInfo<void> page = PageInfo<void>(name);
- }
- /// generated route for
- /// [RewardsMyActivePage]
- class RewardsMyActivePageRoute extends PageRouteInfo<void> {
- const RewardsMyActivePageRoute({List<PageRouteInfo>? children})
- : super(
- RewardsMyActivePageRoute.name,
- initialChildren: children,
- );
- static const String name = 'RewardsMyActivePageRoute';
- static const PageInfo<void> page = PageInfo<void>(name);
- }
- /// generated route for
- /// [RewardsMyExpiredPage]
- class RewardsMyExpiredPageRoute extends PageRouteInfo<void> {
- const RewardsMyExpiredPageRoute({List<PageRouteInfo>? children})
- : super(
- RewardsMyExpiredPageRoute.name,
- initialChildren: children,
- );
- static const String name = 'RewardsMyExpiredPageRoute';
- static const PageInfo<void> page = PageInfo<void>(name);
- }
- /// generated route for
- /// [RewardsMyPage]
- class RewardsMyPageRoute extends PageRouteInfo<void> {
- const RewardsMyPageRoute({List<PageRouteInfo>? children})
- : super(
- RewardsMyPageRoute.name,
- initialChildren: children,
- );
- static const String name = 'RewardsMyPageRoute';
- static const PageInfo<void> page = PageInfo<void>(name);
- }
- /// generated route for
- /// [RewardsMyUsedPage]
- class RewardsMyUsedPageRoute extends PageRouteInfo<void> {
- const RewardsMyUsedPageRoute({List<PageRouteInfo>? children})
- : super(
- RewardsMyUsedPageRoute.name,
- initialChildren: children,
- );
- static const String name = 'RewardsMyUsedPageRoute';
- static const PageInfo<void> page = PageInfo<void>(name);
- }
- /// generated route for
- /// [RewardsPage]
- class RewardsPageRoute extends PageRouteInfo<void> {
- const RewardsPageRoute({List<PageRouteInfo>? children})
- : super(
- RewardsPageRoute.name,
- initialChildren: children,
- );
- static const String name = 'RewardsPageRoute';
- static const PageInfo<void> page = PageInfo<void>(name);
- }
- /// generated route for
- /// [RewardsRedeemPage]
- class RewardsRedeemPageRoute extends PageRouteInfo<RewardsRedeemPageRouteArgs> {
- RewardsRedeemPageRoute({
- Key? key,
- required int? id,
- List<PageRouteInfo>? children,
- }) : super(
- RewardsRedeemPageRoute.name,
- args: RewardsRedeemPageRouteArgs(
- key: key,
- id: id,
- ),
- rawPathParams: {'id': id},
- initialChildren: children,
- );
- static const String name = 'RewardsRedeemPageRoute';
- static const PageInfo<RewardsRedeemPageRouteArgs> page =
- PageInfo<RewardsRedeemPageRouteArgs>(name);
- }
- class RewardsRedeemPageRouteArgs {
- const RewardsRedeemPageRouteArgs({
- this.key,
- required this.id,
- });
- final Key? key;
- final int? id;
- @override
- String toString() {
- return 'RewardsRedeemPageRouteArgs{key: $key, id: $id}';
- }
- }
- /// generated route for
- /// [RewardsSearchPage]
- class RewardsSearchPageRoute extends PageRouteInfo<void> {
- const RewardsSearchPageRoute({List<PageRouteInfo>? children})
- : super(
- RewardsSearchPageRoute.name,
- initialChildren: children,
- );
- static const String name = 'RewardsSearchPageRoute';
- static const PageInfo<void> page = PageInfo<void>(name);
- }
- /// generated route for
- /// [RewardsSuccessfulPage]
- class RewardsSuccessfulPageRoute
- extends PageRouteInfo<RewardsSuccessfulPageRouteArgs> {
- RewardsSuccessfulPageRoute({
- Key? key,
- required int? amount,
- required String? title,
- required String? resources,
- required String? redeemedDate,
- required String? createdAt,
- List<PageRouteInfo>? children,
- }) : super(
- RewardsSuccessfulPageRoute.name,
- args: RewardsSuccessfulPageRouteArgs(
- key: key,
- amount: amount,
- title: title,
- resources: resources,
- redeemedDate: redeemedDate,
- createdAt: createdAt,
- ),
- rawPathParams: {
- 'amount': amount,
- 'title': title,
- 'resources': resources,
- 'redeemedDate': redeemedDate,
- 'createdAt': createdAt,
- },
- initialChildren: children,
- );
- static const String name = 'RewardsSuccessfulPageRoute';
- static const PageInfo<RewardsSuccessfulPageRouteArgs> page =
- PageInfo<RewardsSuccessfulPageRouteArgs>(name);
- }
- class RewardsSuccessfulPageRouteArgs {
- const RewardsSuccessfulPageRouteArgs({
- this.key,
- required this.amount,
- required this.title,
- required this.resources,
- required this.redeemedDate,
- required this.createdAt,
- });
- final Key? key;
- final int? amount;
- final String? title;
- final String? resources;
- final String? redeemedDate;
- final String? createdAt;
- @override
- String toString() {
- return 'RewardsSuccessfulPageRouteArgs{key: $key, amount: $amount, title: $title, resources: $resources, redeemedDate: $redeemedDate, createdAt: $createdAt}';
- }
- }
- /// generated route for
- /// [RewardsTransactionPage]
- class RewardsTransactionPageRoute
- extends PageRouteInfo<RewardsTransactionPageRouteArgs> {
- RewardsTransactionPageRoute({
- Key? key,
- required int? id,
- required String? type,
- List<PageRouteInfo>? children,
- }) : super(
- RewardsTransactionPageRoute.name,
- args: RewardsTransactionPageRouteArgs(
- key: key,
- id: id,
- type: type,
- ),
- rawPathParams: {
- 'id': id,
- 'type': type,
- },
- initialChildren: children,
- );
- static const String name = 'RewardsTransactionPageRoute';
- static const PageInfo<RewardsTransactionPageRouteArgs> page =
- PageInfo<RewardsTransactionPageRouteArgs>(name);
- }
- class RewardsTransactionPageRouteArgs {
- const RewardsTransactionPageRouteArgs({
- this.key,
- required this.id,
- required this.type,
- });
- final Key? key;
- final int? id;
- final String? type;
- @override
- String toString() {
- return 'RewardsTransactionPageRouteArgs{key: $key, id: $id, type: $type}';
- }
- }
|