556 lines
15 KiB
Dart
Raw Normal View History

2025-10-23 22:16:53 +07:00
// dart format width=80
// GENERATED CODE - DO NOT MODIFY BY HAND
// **************************************************************************
// AutoRouterGenerator
// **************************************************************************
// ignore_for_file: type=lint
// coverage:ignore-file
// ignore_for_file: no_leading_underscores_for_library_prefixes
2025-11-01 03:24:39 +07:00
import 'package:apskel_pos_flutter_v2/common/types/split_type.dart' as _i23;
import 'package:apskel_pos_flutter_v2/domain/order/order.dart' as _i22;
2025-10-24 01:16:50 +07:00
import 'package:apskel_pos_flutter_v2/presentation/pages/auth/login/login_page.dart'
2025-10-24 02:02:21 +07:00
as _i4;
2025-10-27 01:54:35 +07:00
import 'package:apskel_pos_flutter_v2/presentation/pages/checkout/checkout_page.dart'
2025-10-23 22:16:53 +07:00
as _i1;
2025-10-27 01:54:35 +07:00
import 'package:apskel_pos_flutter_v2/presentation/pages/main/main_page.dart'
as _i5;
import 'package:apskel_pos_flutter_v2/presentation/pages/main/pages/customer/customer_page.dart'
2025-10-24 01:16:50 +07:00
as _i2;
2025-10-27 01:54:35 +07:00
import 'package:apskel_pos_flutter_v2/presentation/pages/main/pages/home/home_page.dart'
as _i3;
2025-10-24 02:02:21 +07:00
import 'package:apskel_pos_flutter_v2/presentation/pages/main/pages/report/report_page.dart'
2025-10-30 17:08:11 +07:00
as _i10;
2025-11-01 03:24:39 +07:00
import 'package:apskel_pos_flutter_v2/presentation/pages/main/pages/setting/setting_page.dart'
as _i11;
2025-10-24 02:02:21 +07:00
import 'package:apskel_pos_flutter_v2/presentation/pages/main/pages/table/table_page.dart'
2025-11-01 03:24:39 +07:00
as _i17;
2025-10-27 21:55:19 +07:00
import 'package:apskel_pos_flutter_v2/presentation/pages/order/order_page.dart'
as _i6;
2025-10-28 20:55:10 +07:00
import 'package:apskel_pos_flutter_v2/presentation/pages/order/pages/success_add_item_order/success_add_item_order_page.dart'
2025-10-31 19:24:15 +07:00
as _i14;
2025-11-01 03:24:39 +07:00
import 'package:apskel_pos_flutter_v2/presentation/pages/order/pages/success_order/success_order_page.dart'
as _i15;
2025-10-30 17:08:11 +07:00
import 'package:apskel_pos_flutter_v2/presentation/pages/payment/pages/payment_success/payment_success_page.dart'
as _i8;
2025-11-01 03:24:39 +07:00
import 'package:apskel_pos_flutter_v2/presentation/pages/payment/pages/payment_success_split_bill/payment_success_split_bill_page.dart'
as _i9;
2025-10-30 16:35:47 +07:00
import 'package:apskel_pos_flutter_v2/presentation/pages/payment/payment_page.dart'
as _i7;
2025-10-24 02:02:21 +07:00
import 'package:apskel_pos_flutter_v2/presentation/pages/splash/splash_page.dart'
2025-10-31 19:24:15 +07:00
as _i12;
2025-11-01 03:24:39 +07:00
import 'package:apskel_pos_flutter_v2/presentation/pages/split_bill/split_bill_page.dart'
as _i13;
2025-10-27 21:55:19 +07:00
import 'package:apskel_pos_flutter_v2/presentation/pages/sync/sync_page.dart'
2025-11-01 03:24:39 +07:00
as _i16;
2025-10-31 15:14:28 +07:00
import 'package:apskel_pos_flutter_v2/presentation/pages/void/pages/void_success/void_success_page.dart'
2025-11-01 03:24:39 +07:00
as _i19;
2025-10-31 14:33:02 +07:00
import 'package:apskel_pos_flutter_v2/presentation/pages/void/void_page.dart'
2025-11-01 03:24:39 +07:00
as _i18;
import 'package:auto_route/auto_route.dart' as _i20;
import 'package:flutter/material.dart' as _i21;
2025-10-27 01:54:35 +07:00
/// generated route for
/// [_i1.CheckoutPage]
2025-11-01 03:24:39 +07:00
class CheckoutRoute extends _i20.PageRouteInfo<void> {
const CheckoutRoute({List<_i20.PageRouteInfo>? children})
2025-10-27 01:54:35 +07:00
: super(CheckoutRoute.name, initialChildren: children);
static const String name = 'CheckoutRoute';
2025-11-01 03:24:39 +07:00
static _i20.PageInfo page = _i20.PageInfo(
2025-10-27 01:54:35 +07:00
name,
builder: (data) {
2025-11-01 03:24:39 +07:00
return _i20.WrappedRoute(child: const _i1.CheckoutPage());
2025-10-27 01:54:35 +07:00
},
);
}
2025-10-24 02:02:21 +07:00
/// generated route for
2025-10-27 01:54:35 +07:00
/// [_i2.CustomerPage]
2025-11-01 03:24:39 +07:00
class CustomerRoute extends _i20.PageRouteInfo<void> {
const CustomerRoute({List<_i20.PageRouteInfo>? children})
2025-10-24 02:02:21 +07:00
: super(CustomerRoute.name, initialChildren: children);
static const String name = 'CustomerRoute';
2025-11-01 03:24:39 +07:00
static _i20.PageInfo page = _i20.PageInfo(
2025-10-24 02:02:21 +07:00
name,
builder: (data) {
2025-11-01 03:24:39 +07:00
return _i20.WrappedRoute(child: const _i2.CustomerPage());
2025-10-24 02:02:21 +07:00
},
);
}
/// generated route for
2025-10-27 01:54:35 +07:00
/// [_i3.HomePage]
2025-11-01 03:24:39 +07:00
class HomeRoute extends _i20.PageRouteInfo<void> {
const HomeRoute({List<_i20.PageRouteInfo>? children})
2025-10-24 02:02:21 +07:00
: super(HomeRoute.name, initialChildren: children);
static const String name = 'HomeRoute';
2025-11-01 03:24:39 +07:00
static _i20.PageInfo page = _i20.PageInfo(
2025-10-24 02:02:21 +07:00
name,
builder: (data) {
2025-11-01 03:24:39 +07:00
return _i20.WrappedRoute(child: const _i3.HomePage());
2025-10-24 02:02:21 +07:00
},
);
}
2025-10-24 01:16:50 +07:00
/// generated route for
2025-10-27 01:54:35 +07:00
/// [_i4.LoginPage]
2025-11-01 03:24:39 +07:00
class LoginRoute extends _i20.PageRouteInfo<void> {
const LoginRoute({List<_i20.PageRouteInfo>? children})
2025-10-24 01:16:50 +07:00
: super(LoginRoute.name, initialChildren: children);
static const String name = 'LoginRoute';
2025-11-01 03:24:39 +07:00
static _i20.PageInfo page = _i20.PageInfo(
2025-10-24 02:02:21 +07:00
name,
builder: (data) {
2025-11-01 03:24:39 +07:00
return _i20.WrappedRoute(child: const _i4.LoginPage());
2025-10-24 02:02:21 +07:00
},
);
}
/// generated route for
2025-10-27 01:54:35 +07:00
/// [_i5.MainPage]
2025-11-01 03:24:39 +07:00
class MainRoute extends _i20.PageRouteInfo<void> {
const MainRoute({List<_i20.PageRouteInfo>? children})
2025-10-24 02:02:21 +07:00
: super(MainRoute.name, initialChildren: children);
static const String name = 'MainRoute';
2025-11-01 03:24:39 +07:00
static _i20.PageInfo page = _i20.PageInfo(
2025-10-24 02:02:21 +07:00
name,
builder: (data) {
2025-10-27 01:54:35 +07:00
return const _i5.MainPage();
2025-10-24 02:02:21 +07:00
},
);
}
/// generated route for
2025-10-27 21:55:19 +07:00
/// [_i6.OrderPage]
2025-11-01 03:24:39 +07:00
class OrderRoute extends _i20.PageRouteInfo<OrderRouteArgs> {
2025-10-27 21:55:19 +07:00
OrderRoute({
2025-11-01 03:24:39 +07:00
_i21.Key? key,
2025-10-27 21:55:19 +07:00
required String status,
2025-11-01 03:24:39 +07:00
List<_i20.PageRouteInfo>? children,
2025-10-27 21:55:19 +07:00
}) : super(
OrderRoute.name,
args: OrderRouteArgs(key: key, status: status),
initialChildren: children,
);
static const String name = 'OrderRoute';
2025-11-01 03:24:39 +07:00
static _i20.PageInfo page = _i20.PageInfo(
2025-10-27 21:55:19 +07:00
name,
builder: (data) {
final args = data.argsAs<OrderRouteArgs>();
2025-11-01 03:24:39 +07:00
return _i20.WrappedRoute(
2025-10-28 00:08:12 +07:00
child: _i6.OrderPage(key: args.key, status: args.status),
);
2025-10-27 21:55:19 +07:00
},
);
}
class OrderRouteArgs {
const OrderRouteArgs({this.key, required this.status});
2025-11-01 03:24:39 +07:00
final _i21.Key? key;
2025-10-27 21:55:19 +07:00
final String status;
@override
String toString() {
return 'OrderRouteArgs{key: $key, status: $status}';
}
}
/// generated route for
2025-10-30 16:35:47 +07:00
/// [_i7.PaymentPage]
2025-11-01 03:24:39 +07:00
class PaymentRoute extends _i20.PageRouteInfo<PaymentRouteArgs> {
2025-10-30 16:35:47 +07:00
PaymentRoute({
2025-11-01 03:24:39 +07:00
_i21.Key? key,
required _i22.Order order,
2025-10-31 20:43:37 +07:00
bool isSplit = false,
2025-11-01 03:24:39 +07:00
_i23.SplitType splitType = _i23.SplitType.unknown,
2025-10-31 20:43:37 +07:00
String? customerId,
String? customerName,
2025-11-01 03:24:39 +07:00
List<_i20.PageRouteInfo>? children,
2025-10-30 16:35:47 +07:00
}) : super(
PaymentRoute.name,
2025-10-31 20:43:37 +07:00
args: PaymentRouteArgs(
key: key,
order: order,
isSplit: isSplit,
splitType: splitType,
customerId: customerId,
customerName: customerName,
),
2025-10-30 16:35:47 +07:00
initialChildren: children,
);
static const String name = 'PaymentRoute';
2025-11-01 03:24:39 +07:00
static _i20.PageInfo page = _i20.PageInfo(
2025-10-30 16:35:47 +07:00
name,
builder: (data) {
final args = data.argsAs<PaymentRouteArgs>();
2025-11-01 03:24:39 +07:00
return _i20.WrappedRoute(
2025-10-31 20:43:37 +07:00
child: _i7.PaymentPage(
key: args.key,
order: args.order,
isSplit: args.isSplit,
splitType: args.splitType,
customerId: args.customerId,
customerName: args.customerName,
),
2025-10-30 16:35:47 +07:00
);
},
);
}
class PaymentRouteArgs {
2025-10-31 20:43:37 +07:00
const PaymentRouteArgs({
this.key,
required this.order,
this.isSplit = false,
2025-11-01 03:24:39 +07:00
this.splitType = _i23.SplitType.unknown,
2025-10-31 20:43:37 +07:00
this.customerId,
this.customerName,
});
2025-10-30 16:35:47 +07:00
2025-11-01 03:24:39 +07:00
final _i21.Key? key;
2025-10-30 16:35:47 +07:00
2025-11-01 03:24:39 +07:00
final _i22.Order order;
2025-10-30 16:35:47 +07:00
2025-10-31 20:43:37 +07:00
final bool isSplit;
2025-11-01 03:24:39 +07:00
final _i23.SplitType splitType;
2025-10-31 20:43:37 +07:00
final String? customerId;
final String? customerName;
2025-10-30 16:35:47 +07:00
@override
String toString() {
2025-10-31 20:43:37 +07:00
return 'PaymentRouteArgs{key: $key, order: $order, isSplit: $isSplit, splitType: $splitType, customerId: $customerId, customerName: $customerName}';
2025-10-30 16:35:47 +07:00
}
}
/// generated route for
2025-10-30 17:08:11 +07:00
/// [_i8.PaymentSuccessPage]
2025-11-01 03:24:39 +07:00
class PaymentSuccessRoute extends _i20.PageRouteInfo<PaymentSuccessRouteArgs> {
2025-10-30 17:08:11 +07:00
PaymentSuccessRoute({
2025-11-01 03:24:39 +07:00
_i21.Key? key,
2025-10-30 17:08:11 +07:00
required String orderId,
2025-11-01 03:24:39 +07:00
List<_i20.PageRouteInfo>? children,
2025-10-30 17:08:11 +07:00
}) : super(
PaymentSuccessRoute.name,
args: PaymentSuccessRouteArgs(key: key, orderId: orderId),
initialChildren: children,
);
static const String name = 'PaymentSuccessRoute';
2025-11-01 03:24:39 +07:00
static _i20.PageInfo page = _i20.PageInfo(
2025-10-30 17:08:11 +07:00
name,
builder: (data) {
final args = data.argsAs<PaymentSuccessRouteArgs>();
2025-11-01 03:24:39 +07:00
return _i20.WrappedRoute(
2025-10-30 17:08:11 +07:00
child: _i8.PaymentSuccessPage(key: args.key, orderId: args.orderId),
);
},
);
}
class PaymentSuccessRouteArgs {
const PaymentSuccessRouteArgs({this.key, required this.orderId});
2025-11-01 03:24:39 +07:00
final _i21.Key? key;
2025-10-30 17:08:11 +07:00
final String orderId;
@override
String toString() {
return 'PaymentSuccessRouteArgs{key: $key, orderId: $orderId}';
}
}
/// generated route for
2025-11-01 03:24:39 +07:00
/// [_i9.PaymentSuccessSplitBillPage]
class PaymentSuccessSplitBillRoute
extends _i20.PageRouteInfo<PaymentSuccessSplitBillRouteArgs> {
PaymentSuccessSplitBillRoute({
_i21.Key? key,
required String orderId,
List<_i20.PageRouteInfo>? children,
}) : super(
PaymentSuccessSplitBillRoute.name,
args: PaymentSuccessSplitBillRouteArgs(key: key, orderId: orderId),
initialChildren: children,
);
static const String name = 'PaymentSuccessSplitBillRoute';
static _i20.PageInfo page = _i20.PageInfo(
name,
builder: (data) {
final args = data.argsAs<PaymentSuccessSplitBillRouteArgs>();
return _i20.WrappedRoute(
child: _i9.PaymentSuccessSplitBillPage(
key: args.key,
orderId: args.orderId,
),
);
},
);
}
class PaymentSuccessSplitBillRouteArgs {
const PaymentSuccessSplitBillRouteArgs({this.key, required this.orderId});
final _i21.Key? key;
final String orderId;
@override
String toString() {
return 'PaymentSuccessSplitBillRouteArgs{key: $key, orderId: $orderId}';
}
}
/// generated route for
/// [_i10.ReportPage]
class ReportRoute extends _i20.PageRouteInfo<void> {
const ReportRoute({List<_i20.PageRouteInfo>? children})
2025-10-24 02:02:21 +07:00
: super(ReportRoute.name, initialChildren: children);
static const String name = 'ReportRoute';
2025-11-01 03:24:39 +07:00
static _i20.PageInfo page = _i20.PageInfo(
2025-10-24 02:02:21 +07:00
name,
builder: (data) {
2025-11-01 03:24:39 +07:00
return const _i10.ReportPage();
2025-10-24 02:02:21 +07:00
},
);
}
/// generated route for
2025-11-01 03:24:39 +07:00
/// [_i11.SettingPage]
class SettingRoute extends _i20.PageRouteInfo<void> {
const SettingRoute({List<_i20.PageRouteInfo>? children})
2025-10-24 02:02:21 +07:00
: super(SettingRoute.name, initialChildren: children);
static const String name = 'SettingRoute';
2025-11-01 03:24:39 +07:00
static _i20.PageInfo page = _i20.PageInfo(
2025-10-24 01:16:50 +07:00
name,
builder: (data) {
2025-11-01 03:24:39 +07:00
return const _i11.SettingPage();
2025-10-24 01:16:50 +07:00
},
);
}
2025-10-23 22:16:53 +07:00
/// generated route for
2025-11-01 03:24:39 +07:00
/// [_i12.SplashPage]
class SplashRoute extends _i20.PageRouteInfo<void> {
const SplashRoute({List<_i20.PageRouteInfo>? children})
2025-10-23 22:16:53 +07:00
: super(SplashRoute.name, initialChildren: children);
static const String name = 'SplashRoute';
2025-11-01 03:24:39 +07:00
static _i20.PageInfo page = _i20.PageInfo(
2025-10-24 02:02:21 +07:00
name,
builder: (data) {
2025-11-01 03:24:39 +07:00
return const _i12.SplashPage();
2025-10-24 02:02:21 +07:00
},
);
}
/// generated route for
2025-11-01 03:24:39 +07:00
/// [_i13.SplitBillPage]
class SplitBillRoute extends _i20.PageRouteInfo<SplitBillRouteArgs> {
2025-10-31 19:24:15 +07:00
SplitBillRoute({
2025-11-01 03:24:39 +07:00
_i21.Key? key,
required _i22.Order order,
List<_i20.PageRouteInfo>? children,
2025-10-31 19:24:15 +07:00
}) : super(
SplitBillRoute.name,
args: SplitBillRouteArgs(key: key, order: order),
initialChildren: children,
);
static const String name = 'SplitBillRoute';
2025-11-01 03:24:39 +07:00
static _i20.PageInfo page = _i20.PageInfo(
2025-10-31 19:24:15 +07:00
name,
builder: (data) {
final args = data.argsAs<SplitBillRouteArgs>();
2025-11-01 03:24:39 +07:00
return _i20.WrappedRoute(
child: _i13.SplitBillPage(key: args.key, order: args.order),
2025-10-31 19:24:15 +07:00
);
},
);
}
class SplitBillRouteArgs {
const SplitBillRouteArgs({this.key, required this.order});
2025-11-01 03:24:39 +07:00
final _i21.Key? key;
2025-10-31 19:24:15 +07:00
2025-11-01 03:24:39 +07:00
final _i22.Order order;
2025-10-31 19:24:15 +07:00
@override
String toString() {
return 'SplitBillRouteArgs{key: $key, order: $order}';
}
}
/// generated route for
2025-11-01 03:24:39 +07:00
/// [_i14.SuccessAddItemOrderPage]
class SuccessAddItemOrderRoute extends _i20.PageRouteInfo<void> {
const SuccessAddItemOrderRoute({List<_i20.PageRouteInfo>? children})
2025-10-28 20:55:10 +07:00
: super(SuccessAddItemOrderRoute.name, initialChildren: children);
static const String name = 'SuccessAddItemOrderRoute';
2025-11-01 03:24:39 +07:00
static _i20.PageInfo page = _i20.PageInfo(
2025-10-28 20:55:10 +07:00
name,
builder: (data) {
2025-11-01 03:24:39 +07:00
return const _i14.SuccessAddItemOrderPage();
2025-10-28 20:55:10 +07:00
},
);
}
/// generated route for
2025-11-01 03:24:39 +07:00
/// [_i15.SuccessOrderPage]
class SuccessOrderRoute extends _i20.PageRouteInfo<SuccessOrderRouteArgs> {
2025-10-28 15:43:51 +07:00
SuccessOrderRoute({
2025-11-01 03:24:39 +07:00
_i21.Key? key,
required _i22.Order order,
List<_i20.PageRouteInfo>? children,
2025-10-28 15:43:51 +07:00
}) : super(
SuccessOrderRoute.name,
args: SuccessOrderRouteArgs(key: key, order: order),
initialChildren: children,
);
static const String name = 'SuccessOrderRoute';
2025-11-01 03:24:39 +07:00
static _i20.PageInfo page = _i20.PageInfo(
2025-10-28 15:43:51 +07:00
name,
builder: (data) {
final args = data.argsAs<SuccessOrderRouteArgs>();
2025-11-01 03:24:39 +07:00
return _i20.WrappedRoute(
child: _i15.SuccessOrderPage(key: args.key, order: args.order),
2025-10-28 15:43:51 +07:00
);
},
);
}
class SuccessOrderRouteArgs {
const SuccessOrderRouteArgs({this.key, required this.order});
2025-11-01 03:24:39 +07:00
final _i21.Key? key;
2025-10-28 15:43:51 +07:00
2025-11-01 03:24:39 +07:00
final _i22.Order order;
2025-10-28 15:43:51 +07:00
@override
String toString() {
return 'SuccessOrderRouteArgs{key: $key, order: $order}';
}
}
/// generated route for
2025-11-01 03:24:39 +07:00
/// [_i16.SyncPage]
class SyncRoute extends _i20.PageRouteInfo<void> {
const SyncRoute({List<_i20.PageRouteInfo>? children})
2025-10-24 20:06:42 +07:00
: super(SyncRoute.name, initialChildren: children);
static const String name = 'SyncRoute';
2025-11-01 03:24:39 +07:00
static _i20.PageInfo page = _i20.PageInfo(
2025-10-24 20:06:42 +07:00
name,
builder: (data) {
2025-11-01 03:24:39 +07:00
return _i20.WrappedRoute(child: const _i16.SyncPage());
2025-10-24 20:06:42 +07:00
},
);
}
/// generated route for
2025-11-01 03:24:39 +07:00
/// [_i17.TablePage]
class TableRoute extends _i20.PageRouteInfo<void> {
const TableRoute({List<_i20.PageRouteInfo>? children})
2025-10-24 02:02:21 +07:00
: super(TableRoute.name, initialChildren: children);
static const String name = 'TableRoute';
2025-11-01 03:24:39 +07:00
static _i20.PageInfo page = _i20.PageInfo(
2025-10-23 22:16:53 +07:00
name,
builder: (data) {
2025-11-01 03:24:39 +07:00
return _i20.WrappedRoute(child: const _i17.TablePage());
2025-10-23 22:16:53 +07:00
},
);
}
2025-10-31 14:33:02 +07:00
/// generated route for
2025-11-01 03:24:39 +07:00
/// [_i18.VoidPage]
class VoidRoute extends _i20.PageRouteInfo<VoidRouteArgs> {
2025-10-31 14:33:02 +07:00
VoidRoute({
2025-11-01 03:24:39 +07:00
_i21.Key? key,
required _i22.Order order,
List<_i20.PageRouteInfo>? children,
2025-10-31 14:33:02 +07:00
}) : super(
VoidRoute.name,
args: VoidRouteArgs(key: key, order: order),
initialChildren: children,
);
static const String name = 'VoidRoute';
2025-11-01 03:24:39 +07:00
static _i20.PageInfo page = _i20.PageInfo(
2025-10-31 14:33:02 +07:00
name,
builder: (data) {
final args = data.argsAs<VoidRouteArgs>();
2025-11-01 03:24:39 +07:00
return _i20.WrappedRoute(
child: _i18.VoidPage(key: args.key, order: args.order),
2025-10-31 14:33:02 +07:00
);
},
);
}
class VoidRouteArgs {
const VoidRouteArgs({this.key, required this.order});
2025-11-01 03:24:39 +07:00
final _i21.Key? key;
2025-10-31 14:33:02 +07:00
2025-11-01 03:24:39 +07:00
final _i22.Order order;
2025-10-31 14:33:02 +07:00
@override
String toString() {
return 'VoidRouteArgs{key: $key, order: $order}';
}
}
2025-10-31 15:14:28 +07:00
/// generated route for
2025-11-01 03:24:39 +07:00
/// [_i19.VoidSuccessPage]
class VoidSuccessRoute extends _i20.PageRouteInfo<void> {
const VoidSuccessRoute({List<_i20.PageRouteInfo>? children})
2025-10-31 15:14:28 +07:00
: super(VoidSuccessRoute.name, initialChildren: children);
static const String name = 'VoidSuccessRoute';
2025-11-01 03:24:39 +07:00
static _i20.PageInfo page = _i20.PageInfo(
2025-10-31 15:14:28 +07:00
name,
builder: (data) {
2025-11-01 03:24:39 +07:00
return const _i19.VoidSuccessPage();
2025-10-31 15:14:28 +07:00
},
);
}