|
|
|
|
@ -25,6 +25,8 @@ mixin _$OrderFormEvent {
|
|
|
|
|
required TResult Function(List<ProductQuantity> items, String customerName,
|
|
|
|
|
OrderType orderType, TableModel table, PaymentMethod paymentMethod)
|
|
|
|
|
createWithPayment,
|
|
|
|
|
required TResult Function(List<ProductQuantity> items, String orderId)
|
|
|
|
|
addToOrder,
|
|
|
|
|
required TResult Function(OrderItem item) toggleItem,
|
|
|
|
|
required TResult Function(bool selectAll) toggleSelectAll,
|
|
|
|
|
required TResult Function() refund,
|
|
|
|
|
@ -39,6 +41,7 @@ mixin _$OrderFormEvent {
|
|
|
|
|
TResult? Function(List<ProductQuantity> items, String customerName,
|
|
|
|
|
OrderType orderType, TableModel table, PaymentMethod paymentMethod)?
|
|
|
|
|
createWithPayment,
|
|
|
|
|
TResult? Function(List<ProductQuantity> items, String orderId)? addToOrder,
|
|
|
|
|
TResult? Function(OrderItem item)? toggleItem,
|
|
|
|
|
TResult? Function(bool selectAll)? toggleSelectAll,
|
|
|
|
|
TResult? Function()? refund,
|
|
|
|
|
@ -53,6 +56,7 @@ mixin _$OrderFormEvent {
|
|
|
|
|
TResult Function(List<ProductQuantity> items, String customerName,
|
|
|
|
|
OrderType orderType, TableModel table, PaymentMethod paymentMethod)?
|
|
|
|
|
createWithPayment,
|
|
|
|
|
TResult Function(List<ProductQuantity> items, String orderId)? addToOrder,
|
|
|
|
|
TResult Function(OrderItem item)? toggleItem,
|
|
|
|
|
TResult Function(bool selectAll)? toggleSelectAll,
|
|
|
|
|
TResult Function()? refund,
|
|
|
|
|
@ -64,6 +68,7 @@ mixin _$OrderFormEvent {
|
|
|
|
|
required TResult Function(_Started value) started,
|
|
|
|
|
required TResult Function(_Create value) create,
|
|
|
|
|
required TResult Function(_CreateWithPaymentMethod value) createWithPayment,
|
|
|
|
|
required TResult Function(_AddToOrder value) addToOrder,
|
|
|
|
|
required TResult Function(_ToggleItem value) toggleItem,
|
|
|
|
|
required TResult Function(_ToggleSelectAll value) toggleSelectAll,
|
|
|
|
|
required TResult Function(_Refund value) refund,
|
|
|
|
|
@ -74,6 +79,7 @@ mixin _$OrderFormEvent {
|
|
|
|
|
TResult? Function(_Started value)? started,
|
|
|
|
|
TResult? Function(_Create value)? create,
|
|
|
|
|
TResult? Function(_CreateWithPaymentMethod value)? createWithPayment,
|
|
|
|
|
TResult? Function(_AddToOrder value)? addToOrder,
|
|
|
|
|
TResult? Function(_ToggleItem value)? toggleItem,
|
|
|
|
|
TResult? Function(_ToggleSelectAll value)? toggleSelectAll,
|
|
|
|
|
TResult? Function(_Refund value)? refund,
|
|
|
|
|
@ -84,6 +90,7 @@ mixin _$OrderFormEvent {
|
|
|
|
|
TResult Function(_Started value)? started,
|
|
|
|
|
TResult Function(_Create value)? create,
|
|
|
|
|
TResult Function(_CreateWithPaymentMethod value)? createWithPayment,
|
|
|
|
|
TResult Function(_AddToOrder value)? addToOrder,
|
|
|
|
|
TResult Function(_ToggleItem value)? toggleItem,
|
|
|
|
|
TResult Function(_ToggleSelectAll value)? toggleSelectAll,
|
|
|
|
|
TResult Function(_Refund value)? refund,
|
|
|
|
|
@ -188,6 +195,8 @@ class _$StartedImpl implements _Started {
|
|
|
|
|
required TResult Function(List<ProductQuantity> items, String customerName,
|
|
|
|
|
OrderType orderType, TableModel table, PaymentMethod paymentMethod)
|
|
|
|
|
createWithPayment,
|
|
|
|
|
required TResult Function(List<ProductQuantity> items, String orderId)
|
|
|
|
|
addToOrder,
|
|
|
|
|
required TResult Function(OrderItem item) toggleItem,
|
|
|
|
|
required TResult Function(bool selectAll) toggleSelectAll,
|
|
|
|
|
required TResult Function() refund,
|
|
|
|
|
@ -205,6 +214,7 @@ class _$StartedImpl implements _Started {
|
|
|
|
|
TResult? Function(List<ProductQuantity> items, String customerName,
|
|
|
|
|
OrderType orderType, TableModel table, PaymentMethod paymentMethod)?
|
|
|
|
|
createWithPayment,
|
|
|
|
|
TResult? Function(List<ProductQuantity> items, String orderId)? addToOrder,
|
|
|
|
|
TResult? Function(OrderItem item)? toggleItem,
|
|
|
|
|
TResult? Function(bool selectAll)? toggleSelectAll,
|
|
|
|
|
TResult? Function()? refund,
|
|
|
|
|
@ -222,6 +232,7 @@ class _$StartedImpl implements _Started {
|
|
|
|
|
TResult Function(List<ProductQuantity> items, String customerName,
|
|
|
|
|
OrderType orderType, TableModel table, PaymentMethod paymentMethod)?
|
|
|
|
|
createWithPayment,
|
|
|
|
|
TResult Function(List<ProductQuantity> items, String orderId)? addToOrder,
|
|
|
|
|
TResult Function(OrderItem item)? toggleItem,
|
|
|
|
|
TResult Function(bool selectAll)? toggleSelectAll,
|
|
|
|
|
TResult Function()? refund,
|
|
|
|
|
@ -239,6 +250,7 @@ class _$StartedImpl implements _Started {
|
|
|
|
|
required TResult Function(_Started value) started,
|
|
|
|
|
required TResult Function(_Create value) create,
|
|
|
|
|
required TResult Function(_CreateWithPaymentMethod value) createWithPayment,
|
|
|
|
|
required TResult Function(_AddToOrder value) addToOrder,
|
|
|
|
|
required TResult Function(_ToggleItem value) toggleItem,
|
|
|
|
|
required TResult Function(_ToggleSelectAll value) toggleSelectAll,
|
|
|
|
|
required TResult Function(_Refund value) refund,
|
|
|
|
|
@ -252,6 +264,7 @@ class _$StartedImpl implements _Started {
|
|
|
|
|
TResult? Function(_Started value)? started,
|
|
|
|
|
TResult? Function(_Create value)? create,
|
|
|
|
|
TResult? Function(_CreateWithPaymentMethod value)? createWithPayment,
|
|
|
|
|
TResult? Function(_AddToOrder value)? addToOrder,
|
|
|
|
|
TResult? Function(_ToggleItem value)? toggleItem,
|
|
|
|
|
TResult? Function(_ToggleSelectAll value)? toggleSelectAll,
|
|
|
|
|
TResult? Function(_Refund value)? refund,
|
|
|
|
|
@ -265,6 +278,7 @@ class _$StartedImpl implements _Started {
|
|
|
|
|
TResult Function(_Started value)? started,
|
|
|
|
|
TResult Function(_Create value)? create,
|
|
|
|
|
TResult Function(_CreateWithPaymentMethod value)? createWithPayment,
|
|
|
|
|
TResult Function(_AddToOrder value)? addToOrder,
|
|
|
|
|
TResult Function(_ToggleItem value)? toggleItem,
|
|
|
|
|
TResult Function(_ToggleSelectAll value)? toggleSelectAll,
|
|
|
|
|
TResult Function(_Refund value)? refund,
|
|
|
|
|
@ -318,7 +332,7 @@ class __$$CreateImplCopyWithImpl<$Res>
|
|
|
|
|
Object? items = null,
|
|
|
|
|
Object? customerName = null,
|
|
|
|
|
Object? orderType = null,
|
|
|
|
|
Object? table = freezed,
|
|
|
|
|
Object? table = null,
|
|
|
|
|
}) {
|
|
|
|
|
return _then(_$CreateImpl(
|
|
|
|
|
items: null == items
|
|
|
|
|
@ -333,7 +347,7 @@ class __$$CreateImplCopyWithImpl<$Res>
|
|
|
|
|
? _value.orderType
|
|
|
|
|
: orderType // ignore: cast_nullable_to_non_nullable
|
|
|
|
|
as OrderType,
|
|
|
|
|
table: freezed == table
|
|
|
|
|
table: null == table
|
|
|
|
|
? _value.table
|
|
|
|
|
: table // ignore: cast_nullable_to_non_nullable
|
|
|
|
|
as TableModel,
|
|
|
|
|
@ -381,7 +395,7 @@ class _$CreateImpl implements _Create {
|
|
|
|
|
other.customerName == customerName) &&
|
|
|
|
|
(identical(other.orderType, orderType) ||
|
|
|
|
|
other.orderType == orderType) &&
|
|
|
|
|
const DeepCollectionEquality().equals(other.table, table));
|
|
|
|
|
(identical(other.table, table) || other.table == table));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
@ -390,7 +404,7 @@ class _$CreateImpl implements _Create {
|
|
|
|
|
const DeepCollectionEquality().hash(_items),
|
|
|
|
|
customerName,
|
|
|
|
|
orderType,
|
|
|
|
|
const DeepCollectionEquality().hash(table));
|
|
|
|
|
table);
|
|
|
|
|
|
|
|
|
|
/// Create a copy of OrderFormEvent
|
|
|
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
|
|
|
@ -410,6 +424,8 @@ class _$CreateImpl implements _Create {
|
|
|
|
|
required TResult Function(List<ProductQuantity> items, String customerName,
|
|
|
|
|
OrderType orderType, TableModel table, PaymentMethod paymentMethod)
|
|
|
|
|
createWithPayment,
|
|
|
|
|
required TResult Function(List<ProductQuantity> items, String orderId)
|
|
|
|
|
addToOrder,
|
|
|
|
|
required TResult Function(OrderItem item) toggleItem,
|
|
|
|
|
required TResult Function(bool selectAll) toggleSelectAll,
|
|
|
|
|
required TResult Function() refund,
|
|
|
|
|
@ -427,6 +443,7 @@ class _$CreateImpl implements _Create {
|
|
|
|
|
TResult? Function(List<ProductQuantity> items, String customerName,
|
|
|
|
|
OrderType orderType, TableModel table, PaymentMethod paymentMethod)?
|
|
|
|
|
createWithPayment,
|
|
|
|
|
TResult? Function(List<ProductQuantity> items, String orderId)? addToOrder,
|
|
|
|
|
TResult? Function(OrderItem item)? toggleItem,
|
|
|
|
|
TResult? Function(bool selectAll)? toggleSelectAll,
|
|
|
|
|
TResult? Function()? refund,
|
|
|
|
|
@ -444,6 +461,7 @@ class _$CreateImpl implements _Create {
|
|
|
|
|
TResult Function(List<ProductQuantity> items, String customerName,
|
|
|
|
|
OrderType orderType, TableModel table, PaymentMethod paymentMethod)?
|
|
|
|
|
createWithPayment,
|
|
|
|
|
TResult Function(List<ProductQuantity> items, String orderId)? addToOrder,
|
|
|
|
|
TResult Function(OrderItem item)? toggleItem,
|
|
|
|
|
TResult Function(bool selectAll)? toggleSelectAll,
|
|
|
|
|
TResult Function()? refund,
|
|
|
|
|
@ -461,6 +479,7 @@ class _$CreateImpl implements _Create {
|
|
|
|
|
required TResult Function(_Started value) started,
|
|
|
|
|
required TResult Function(_Create value) create,
|
|
|
|
|
required TResult Function(_CreateWithPaymentMethod value) createWithPayment,
|
|
|
|
|
required TResult Function(_AddToOrder value) addToOrder,
|
|
|
|
|
required TResult Function(_ToggleItem value) toggleItem,
|
|
|
|
|
required TResult Function(_ToggleSelectAll value) toggleSelectAll,
|
|
|
|
|
required TResult Function(_Refund value) refund,
|
|
|
|
|
@ -474,6 +493,7 @@ class _$CreateImpl implements _Create {
|
|
|
|
|
TResult? Function(_Started value)? started,
|
|
|
|
|
TResult? Function(_Create value)? create,
|
|
|
|
|
TResult? Function(_CreateWithPaymentMethod value)? createWithPayment,
|
|
|
|
|
TResult? Function(_AddToOrder value)? addToOrder,
|
|
|
|
|
TResult? Function(_ToggleItem value)? toggleItem,
|
|
|
|
|
TResult? Function(_ToggleSelectAll value)? toggleSelectAll,
|
|
|
|
|
TResult? Function(_Refund value)? refund,
|
|
|
|
|
@ -487,6 +507,7 @@ class _$CreateImpl implements _Create {
|
|
|
|
|
TResult Function(_Started value)? started,
|
|
|
|
|
TResult Function(_Create value)? create,
|
|
|
|
|
TResult Function(_CreateWithPaymentMethod value)? createWithPayment,
|
|
|
|
|
TResult Function(_AddToOrder value)? addToOrder,
|
|
|
|
|
TResult Function(_ToggleItem value)? toggleItem,
|
|
|
|
|
TResult Function(_ToggleSelectAll value)? toggleSelectAll,
|
|
|
|
|
TResult Function(_Refund value)? refund,
|
|
|
|
|
@ -550,7 +571,7 @@ class __$$CreateWithPaymentMethodImplCopyWithImpl<$Res>
|
|
|
|
|
Object? items = null,
|
|
|
|
|
Object? customerName = null,
|
|
|
|
|
Object? orderType = null,
|
|
|
|
|
Object? table = freezed,
|
|
|
|
|
Object? table = null,
|
|
|
|
|
Object? paymentMethod = null,
|
|
|
|
|
}) {
|
|
|
|
|
return _then(_$CreateWithPaymentMethodImpl(
|
|
|
|
|
@ -566,7 +587,7 @@ class __$$CreateWithPaymentMethodImplCopyWithImpl<$Res>
|
|
|
|
|
? _value.orderType
|
|
|
|
|
: orderType // ignore: cast_nullable_to_non_nullable
|
|
|
|
|
as OrderType,
|
|
|
|
|
table: freezed == table
|
|
|
|
|
table: null == table
|
|
|
|
|
? _value.table
|
|
|
|
|
: table // ignore: cast_nullable_to_non_nullable
|
|
|
|
|
as TableModel,
|
|
|
|
|
@ -621,7 +642,7 @@ class _$CreateWithPaymentMethodImpl implements _CreateWithPaymentMethod {
|
|
|
|
|
other.customerName == customerName) &&
|
|
|
|
|
(identical(other.orderType, orderType) ||
|
|
|
|
|
other.orderType == orderType) &&
|
|
|
|
|
const DeepCollectionEquality().equals(other.table, table) &&
|
|
|
|
|
(identical(other.table, table) || other.table == table) &&
|
|
|
|
|
(identical(other.paymentMethod, paymentMethod) ||
|
|
|
|
|
other.paymentMethod == paymentMethod));
|
|
|
|
|
}
|
|
|
|
|
@ -632,7 +653,7 @@ class _$CreateWithPaymentMethodImpl implements _CreateWithPaymentMethod {
|
|
|
|
|
const DeepCollectionEquality().hash(_items),
|
|
|
|
|
customerName,
|
|
|
|
|
orderType,
|
|
|
|
|
const DeepCollectionEquality().hash(table),
|
|
|
|
|
table,
|
|
|
|
|
paymentMethod);
|
|
|
|
|
|
|
|
|
|
/// Create a copy of OrderFormEvent
|
|
|
|
|
@ -654,6 +675,8 @@ class _$CreateWithPaymentMethodImpl implements _CreateWithPaymentMethod {
|
|
|
|
|
required TResult Function(List<ProductQuantity> items, String customerName,
|
|
|
|
|
OrderType orderType, TableModel table, PaymentMethod paymentMethod)
|
|
|
|
|
createWithPayment,
|
|
|
|
|
required TResult Function(List<ProductQuantity> items, String orderId)
|
|
|
|
|
addToOrder,
|
|
|
|
|
required TResult Function(OrderItem item) toggleItem,
|
|
|
|
|
required TResult Function(bool selectAll) toggleSelectAll,
|
|
|
|
|
required TResult Function() refund,
|
|
|
|
|
@ -672,6 +695,7 @@ class _$CreateWithPaymentMethodImpl implements _CreateWithPaymentMethod {
|
|
|
|
|
TResult? Function(List<ProductQuantity> items, String customerName,
|
|
|
|
|
OrderType orderType, TableModel table, PaymentMethod paymentMethod)?
|
|
|
|
|
createWithPayment,
|
|
|
|
|
TResult? Function(List<ProductQuantity> items, String orderId)? addToOrder,
|
|
|
|
|
TResult? Function(OrderItem item)? toggleItem,
|
|
|
|
|
TResult? Function(bool selectAll)? toggleSelectAll,
|
|
|
|
|
TResult? Function()? refund,
|
|
|
|
|
@ -690,6 +714,7 @@ class _$CreateWithPaymentMethodImpl implements _CreateWithPaymentMethod {
|
|
|
|
|
TResult Function(List<ProductQuantity> items, String customerName,
|
|
|
|
|
OrderType orderType, TableModel table, PaymentMethod paymentMethod)?
|
|
|
|
|
createWithPayment,
|
|
|
|
|
TResult Function(List<ProductQuantity> items, String orderId)? addToOrder,
|
|
|
|
|
TResult Function(OrderItem item)? toggleItem,
|
|
|
|
|
TResult Function(bool selectAll)? toggleSelectAll,
|
|
|
|
|
TResult Function()? refund,
|
|
|
|
|
@ -708,6 +733,7 @@ class _$CreateWithPaymentMethodImpl implements _CreateWithPaymentMethod {
|
|
|
|
|
required TResult Function(_Started value) started,
|
|
|
|
|
required TResult Function(_Create value) create,
|
|
|
|
|
required TResult Function(_CreateWithPaymentMethod value) createWithPayment,
|
|
|
|
|
required TResult Function(_AddToOrder value) addToOrder,
|
|
|
|
|
required TResult Function(_ToggleItem value) toggleItem,
|
|
|
|
|
required TResult Function(_ToggleSelectAll value) toggleSelectAll,
|
|
|
|
|
required TResult Function(_Refund value) refund,
|
|
|
|
|
@ -721,6 +747,7 @@ class _$CreateWithPaymentMethodImpl implements _CreateWithPaymentMethod {
|
|
|
|
|
TResult? Function(_Started value)? started,
|
|
|
|
|
TResult? Function(_Create value)? create,
|
|
|
|
|
TResult? Function(_CreateWithPaymentMethod value)? createWithPayment,
|
|
|
|
|
TResult? Function(_AddToOrder value)? addToOrder,
|
|
|
|
|
TResult? Function(_ToggleItem value)? toggleItem,
|
|
|
|
|
TResult? Function(_ToggleSelectAll value)? toggleSelectAll,
|
|
|
|
|
TResult? Function(_Refund value)? refund,
|
|
|
|
|
@ -734,6 +761,7 @@ class _$CreateWithPaymentMethodImpl implements _CreateWithPaymentMethod {
|
|
|
|
|
TResult Function(_Started value)? started,
|
|
|
|
|
TResult Function(_Create value)? create,
|
|
|
|
|
TResult Function(_CreateWithPaymentMethod value)? createWithPayment,
|
|
|
|
|
TResult Function(_AddToOrder value)? addToOrder,
|
|
|
|
|
TResult Function(_ToggleItem value)? toggleItem,
|
|
|
|
|
TResult Function(_ToggleSelectAll value)? toggleSelectAll,
|
|
|
|
|
TResult Function(_Refund value)? refund,
|
|
|
|
|
@ -768,6 +796,209 @@ abstract class _CreateWithPaymentMethod implements OrderFormEvent {
|
|
|
|
|
get copyWith => throw _privateConstructorUsedError;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// @nodoc
|
|
|
|
|
abstract class _$$AddToOrderImplCopyWith<$Res> {
|
|
|
|
|
factory _$$AddToOrderImplCopyWith(
|
|
|
|
|
_$AddToOrderImpl value, $Res Function(_$AddToOrderImpl) then) =
|
|
|
|
|
__$$AddToOrderImplCopyWithImpl<$Res>;
|
|
|
|
|
@useResult
|
|
|
|
|
$Res call({List<ProductQuantity> items, String orderId});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// @nodoc
|
|
|
|
|
class __$$AddToOrderImplCopyWithImpl<$Res>
|
|
|
|
|
extends _$OrderFormEventCopyWithImpl<$Res, _$AddToOrderImpl>
|
|
|
|
|
implements _$$AddToOrderImplCopyWith<$Res> {
|
|
|
|
|
__$$AddToOrderImplCopyWithImpl(
|
|
|
|
|
_$AddToOrderImpl _value, $Res Function(_$AddToOrderImpl) _then)
|
|
|
|
|
: super(_value, _then);
|
|
|
|
|
|
|
|
|
|
/// Create a copy of OrderFormEvent
|
|
|
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
|
|
|
@pragma('vm:prefer-inline')
|
|
|
|
|
@override
|
|
|
|
|
$Res call({
|
|
|
|
|
Object? items = null,
|
|
|
|
|
Object? orderId = null,
|
|
|
|
|
}) {
|
|
|
|
|
return _then(_$AddToOrderImpl(
|
|
|
|
|
items: null == items
|
|
|
|
|
? _value._items
|
|
|
|
|
: items // ignore: cast_nullable_to_non_nullable
|
|
|
|
|
as List<ProductQuantity>,
|
|
|
|
|
orderId: null == orderId
|
|
|
|
|
? _value.orderId
|
|
|
|
|
: orderId // ignore: cast_nullable_to_non_nullable
|
|
|
|
|
as String,
|
|
|
|
|
));
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// @nodoc
|
|
|
|
|
|
|
|
|
|
class _$AddToOrderImpl implements _AddToOrder {
|
|
|
|
|
const _$AddToOrderImpl(
|
|
|
|
|
{required final List<ProductQuantity> items, required this.orderId})
|
|
|
|
|
: _items = items;
|
|
|
|
|
|
|
|
|
|
final List<ProductQuantity> _items;
|
|
|
|
|
@override
|
|
|
|
|
List<ProductQuantity> get items {
|
|
|
|
|
if (_items is EqualUnmodifiableListView) return _items;
|
|
|
|
|
// ignore: implicit_dynamic_type
|
|
|
|
|
return EqualUnmodifiableListView(_items);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
final String orderId;
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
String toString() {
|
|
|
|
|
return 'OrderFormEvent.addToOrder(items: $items, orderId: $orderId)';
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
bool operator ==(Object other) {
|
|
|
|
|
return identical(this, other) ||
|
|
|
|
|
(other.runtimeType == runtimeType &&
|
|
|
|
|
other is _$AddToOrderImpl &&
|
|
|
|
|
const DeepCollectionEquality().equals(other._items, _items) &&
|
|
|
|
|
(identical(other.orderId, orderId) || other.orderId == orderId));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
int get hashCode => Object.hash(
|
|
|
|
|
runtimeType, const DeepCollectionEquality().hash(_items), orderId);
|
|
|
|
|
|
|
|
|
|
/// Create a copy of OrderFormEvent
|
|
|
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
|
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
|
|
|
@override
|
|
|
|
|
@pragma('vm:prefer-inline')
|
|
|
|
|
_$$AddToOrderImplCopyWith<_$AddToOrderImpl> get copyWith =>
|
|
|
|
|
__$$AddToOrderImplCopyWithImpl<_$AddToOrderImpl>(this, _$identity);
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
@optionalTypeArgs
|
|
|
|
|
TResult when<TResult extends Object?>({
|
|
|
|
|
required TResult Function(Order order) started,
|
|
|
|
|
required TResult Function(List<ProductQuantity> items, String customerName,
|
|
|
|
|
OrderType orderType, TableModel table)
|
|
|
|
|
create,
|
|
|
|
|
required TResult Function(List<ProductQuantity> items, String customerName,
|
|
|
|
|
OrderType orderType, TableModel table, PaymentMethod paymentMethod)
|
|
|
|
|
createWithPayment,
|
|
|
|
|
required TResult Function(List<ProductQuantity> items, String orderId)
|
|
|
|
|
addToOrder,
|
|
|
|
|
required TResult Function(OrderItem item) toggleItem,
|
|
|
|
|
required TResult Function(bool selectAll) toggleSelectAll,
|
|
|
|
|
required TResult Function() refund,
|
|
|
|
|
}) {
|
|
|
|
|
return addToOrder(items, orderId);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
@optionalTypeArgs
|
|
|
|
|
TResult? whenOrNull<TResult extends Object?>({
|
|
|
|
|
TResult? Function(Order order)? started,
|
|
|
|
|
TResult? Function(List<ProductQuantity> items, String customerName,
|
|
|
|
|
OrderType orderType, TableModel table)?
|
|
|
|
|
create,
|
|
|
|
|
TResult? Function(List<ProductQuantity> items, String customerName,
|
|
|
|
|
OrderType orderType, TableModel table, PaymentMethod paymentMethod)?
|
|
|
|
|
createWithPayment,
|
|
|
|
|
TResult? Function(List<ProductQuantity> items, String orderId)? addToOrder,
|
|
|
|
|
TResult? Function(OrderItem item)? toggleItem,
|
|
|
|
|
TResult? Function(bool selectAll)? toggleSelectAll,
|
|
|
|
|
TResult? Function()? refund,
|
|
|
|
|
}) {
|
|
|
|
|
return addToOrder?.call(items, orderId);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
@optionalTypeArgs
|
|
|
|
|
TResult maybeWhen<TResult extends Object?>({
|
|
|
|
|
TResult Function(Order order)? started,
|
|
|
|
|
TResult Function(List<ProductQuantity> items, String customerName,
|
|
|
|
|
OrderType orderType, TableModel table)?
|
|
|
|
|
create,
|
|
|
|
|
TResult Function(List<ProductQuantity> items, String customerName,
|
|
|
|
|
OrderType orderType, TableModel table, PaymentMethod paymentMethod)?
|
|
|
|
|
createWithPayment,
|
|
|
|
|
TResult Function(List<ProductQuantity> items, String orderId)? addToOrder,
|
|
|
|
|
TResult Function(OrderItem item)? toggleItem,
|
|
|
|
|
TResult Function(bool selectAll)? toggleSelectAll,
|
|
|
|
|
TResult Function()? refund,
|
|
|
|
|
required TResult orElse(),
|
|
|
|
|
}) {
|
|
|
|
|
if (addToOrder != null) {
|
|
|
|
|
return addToOrder(items, orderId);
|
|
|
|
|
}
|
|
|
|
|
return orElse();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
@optionalTypeArgs
|
|
|
|
|
TResult map<TResult extends Object?>({
|
|
|
|
|
required TResult Function(_Started value) started,
|
|
|
|
|
required TResult Function(_Create value) create,
|
|
|
|
|
required TResult Function(_CreateWithPaymentMethod value) createWithPayment,
|
|
|
|
|
required TResult Function(_AddToOrder value) addToOrder,
|
|
|
|
|
required TResult Function(_ToggleItem value) toggleItem,
|
|
|
|
|
required TResult Function(_ToggleSelectAll value) toggleSelectAll,
|
|
|
|
|
required TResult Function(_Refund value) refund,
|
|
|
|
|
}) {
|
|
|
|
|
return addToOrder(this);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
@optionalTypeArgs
|
|
|
|
|
TResult? mapOrNull<TResult extends Object?>({
|
|
|
|
|
TResult? Function(_Started value)? started,
|
|
|
|
|
TResult? Function(_Create value)? create,
|
|
|
|
|
TResult? Function(_CreateWithPaymentMethod value)? createWithPayment,
|
|
|
|
|
TResult? Function(_AddToOrder value)? addToOrder,
|
|
|
|
|
TResult? Function(_ToggleItem value)? toggleItem,
|
|
|
|
|
TResult? Function(_ToggleSelectAll value)? toggleSelectAll,
|
|
|
|
|
TResult? Function(_Refund value)? refund,
|
|
|
|
|
}) {
|
|
|
|
|
return addToOrder?.call(this);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
@optionalTypeArgs
|
|
|
|
|
TResult maybeMap<TResult extends Object?>({
|
|
|
|
|
TResult Function(_Started value)? started,
|
|
|
|
|
TResult Function(_Create value)? create,
|
|
|
|
|
TResult Function(_CreateWithPaymentMethod value)? createWithPayment,
|
|
|
|
|
TResult Function(_AddToOrder value)? addToOrder,
|
|
|
|
|
TResult Function(_ToggleItem value)? toggleItem,
|
|
|
|
|
TResult Function(_ToggleSelectAll value)? toggleSelectAll,
|
|
|
|
|
TResult Function(_Refund value)? refund,
|
|
|
|
|
required TResult orElse(),
|
|
|
|
|
}) {
|
|
|
|
|
if (addToOrder != null) {
|
|
|
|
|
return addToOrder(this);
|
|
|
|
|
}
|
|
|
|
|
return orElse();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
abstract class _AddToOrder implements OrderFormEvent {
|
|
|
|
|
const factory _AddToOrder(
|
|
|
|
|
{required final List<ProductQuantity> items,
|
|
|
|
|
required final String orderId}) = _$AddToOrderImpl;
|
|
|
|
|
|
|
|
|
|
List<ProductQuantity> get items;
|
|
|
|
|
String get orderId;
|
|
|
|
|
|
|
|
|
|
/// Create a copy of OrderFormEvent
|
|
|
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
|
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
|
|
|
_$$AddToOrderImplCopyWith<_$AddToOrderImpl> get copyWith =>
|
|
|
|
|
throw _privateConstructorUsedError;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// @nodoc
|
|
|
|
|
abstract class _$$ToggleItemImplCopyWith<$Res> {
|
|
|
|
|
factory _$$ToggleItemImplCopyWith(
|
|
|
|
|
@ -843,6 +1074,8 @@ class _$ToggleItemImpl implements _ToggleItem {
|
|
|
|
|
required TResult Function(List<ProductQuantity> items, String customerName,
|
|
|
|
|
OrderType orderType, TableModel table, PaymentMethod paymentMethod)
|
|
|
|
|
createWithPayment,
|
|
|
|
|
required TResult Function(List<ProductQuantity> items, String orderId)
|
|
|
|
|
addToOrder,
|
|
|
|
|
required TResult Function(OrderItem item) toggleItem,
|
|
|
|
|
required TResult Function(bool selectAll) toggleSelectAll,
|
|
|
|
|
required TResult Function() refund,
|
|
|
|
|
@ -860,6 +1093,7 @@ class _$ToggleItemImpl implements _ToggleItem {
|
|
|
|
|
TResult? Function(List<ProductQuantity> items, String customerName,
|
|
|
|
|
OrderType orderType, TableModel table, PaymentMethod paymentMethod)?
|
|
|
|
|
createWithPayment,
|
|
|
|
|
TResult? Function(List<ProductQuantity> items, String orderId)? addToOrder,
|
|
|
|
|
TResult? Function(OrderItem item)? toggleItem,
|
|
|
|
|
TResult? Function(bool selectAll)? toggleSelectAll,
|
|
|
|
|
TResult? Function()? refund,
|
|
|
|
|
@ -877,6 +1111,7 @@ class _$ToggleItemImpl implements _ToggleItem {
|
|
|
|
|
TResult Function(List<ProductQuantity> items, String customerName,
|
|
|
|
|
OrderType orderType, TableModel table, PaymentMethod paymentMethod)?
|
|
|
|
|
createWithPayment,
|
|
|
|
|
TResult Function(List<ProductQuantity> items, String orderId)? addToOrder,
|
|
|
|
|
TResult Function(OrderItem item)? toggleItem,
|
|
|
|
|
TResult Function(bool selectAll)? toggleSelectAll,
|
|
|
|
|
TResult Function()? refund,
|
|
|
|
|
@ -894,6 +1129,7 @@ class _$ToggleItemImpl implements _ToggleItem {
|
|
|
|
|
required TResult Function(_Started value) started,
|
|
|
|
|
required TResult Function(_Create value) create,
|
|
|
|
|
required TResult Function(_CreateWithPaymentMethod value) createWithPayment,
|
|
|
|
|
required TResult Function(_AddToOrder value) addToOrder,
|
|
|
|
|
required TResult Function(_ToggleItem value) toggleItem,
|
|
|
|
|
required TResult Function(_ToggleSelectAll value) toggleSelectAll,
|
|
|
|
|
required TResult Function(_Refund value) refund,
|
|
|
|
|
@ -907,6 +1143,7 @@ class _$ToggleItemImpl implements _ToggleItem {
|
|
|
|
|
TResult? Function(_Started value)? started,
|
|
|
|
|
TResult? Function(_Create value)? create,
|
|
|
|
|
TResult? Function(_CreateWithPaymentMethod value)? createWithPayment,
|
|
|
|
|
TResult? Function(_AddToOrder value)? addToOrder,
|
|
|
|
|
TResult? Function(_ToggleItem value)? toggleItem,
|
|
|
|
|
TResult? Function(_ToggleSelectAll value)? toggleSelectAll,
|
|
|
|
|
TResult? Function(_Refund value)? refund,
|
|
|
|
|
@ -920,6 +1157,7 @@ class _$ToggleItemImpl implements _ToggleItem {
|
|
|
|
|
TResult Function(_Started value)? started,
|
|
|
|
|
TResult Function(_Create value)? create,
|
|
|
|
|
TResult Function(_CreateWithPaymentMethod value)? createWithPayment,
|
|
|
|
|
TResult Function(_AddToOrder value)? addToOrder,
|
|
|
|
|
TResult Function(_ToggleItem value)? toggleItem,
|
|
|
|
|
TResult Function(_ToggleSelectAll value)? toggleSelectAll,
|
|
|
|
|
TResult Function(_Refund value)? refund,
|
|
|
|
|
@ -1021,6 +1259,8 @@ class _$ToggleSelectAllImpl implements _ToggleSelectAll {
|
|
|
|
|
required TResult Function(List<ProductQuantity> items, String customerName,
|
|
|
|
|
OrderType orderType, TableModel table, PaymentMethod paymentMethod)
|
|
|
|
|
createWithPayment,
|
|
|
|
|
required TResult Function(List<ProductQuantity> items, String orderId)
|
|
|
|
|
addToOrder,
|
|
|
|
|
required TResult Function(OrderItem item) toggleItem,
|
|
|
|
|
required TResult Function(bool selectAll) toggleSelectAll,
|
|
|
|
|
required TResult Function() refund,
|
|
|
|
|
@ -1038,6 +1278,7 @@ class _$ToggleSelectAllImpl implements _ToggleSelectAll {
|
|
|
|
|
TResult? Function(List<ProductQuantity> items, String customerName,
|
|
|
|
|
OrderType orderType, TableModel table, PaymentMethod paymentMethod)?
|
|
|
|
|
createWithPayment,
|
|
|
|
|
TResult? Function(List<ProductQuantity> items, String orderId)? addToOrder,
|
|
|
|
|
TResult? Function(OrderItem item)? toggleItem,
|
|
|
|
|
TResult? Function(bool selectAll)? toggleSelectAll,
|
|
|
|
|
TResult? Function()? refund,
|
|
|
|
|
@ -1055,6 +1296,7 @@ class _$ToggleSelectAllImpl implements _ToggleSelectAll {
|
|
|
|
|
TResult Function(List<ProductQuantity> items, String customerName,
|
|
|
|
|
OrderType orderType, TableModel table, PaymentMethod paymentMethod)?
|
|
|
|
|
createWithPayment,
|
|
|
|
|
TResult Function(List<ProductQuantity> items, String orderId)? addToOrder,
|
|
|
|
|
TResult Function(OrderItem item)? toggleItem,
|
|
|
|
|
TResult Function(bool selectAll)? toggleSelectAll,
|
|
|
|
|
TResult Function()? refund,
|
|
|
|
|
@ -1072,6 +1314,7 @@ class _$ToggleSelectAllImpl implements _ToggleSelectAll {
|
|
|
|
|
required TResult Function(_Started value) started,
|
|
|
|
|
required TResult Function(_Create value) create,
|
|
|
|
|
required TResult Function(_CreateWithPaymentMethod value) createWithPayment,
|
|
|
|
|
required TResult Function(_AddToOrder value) addToOrder,
|
|
|
|
|
required TResult Function(_ToggleItem value) toggleItem,
|
|
|
|
|
required TResult Function(_ToggleSelectAll value) toggleSelectAll,
|
|
|
|
|
required TResult Function(_Refund value) refund,
|
|
|
|
|
@ -1085,6 +1328,7 @@ class _$ToggleSelectAllImpl implements _ToggleSelectAll {
|
|
|
|
|
TResult? Function(_Started value)? started,
|
|
|
|
|
TResult? Function(_Create value)? create,
|
|
|
|
|
TResult? Function(_CreateWithPaymentMethod value)? createWithPayment,
|
|
|
|
|
TResult? Function(_AddToOrder value)? addToOrder,
|
|
|
|
|
TResult? Function(_ToggleItem value)? toggleItem,
|
|
|
|
|
TResult? Function(_ToggleSelectAll value)? toggleSelectAll,
|
|
|
|
|
TResult? Function(_Refund value)? refund,
|
|
|
|
|
@ -1098,6 +1342,7 @@ class _$ToggleSelectAllImpl implements _ToggleSelectAll {
|
|
|
|
|
TResult Function(_Started value)? started,
|
|
|
|
|
TResult Function(_Create value)? create,
|
|
|
|
|
TResult Function(_CreateWithPaymentMethod value)? createWithPayment,
|
|
|
|
|
TResult Function(_AddToOrder value)? addToOrder,
|
|
|
|
|
TResult Function(_ToggleItem value)? toggleItem,
|
|
|
|
|
TResult Function(_ToggleSelectAll value)? toggleSelectAll,
|
|
|
|
|
TResult Function(_Refund value)? refund,
|
|
|
|
|
@ -1170,6 +1415,8 @@ class _$RefundImpl implements _Refund {
|
|
|
|
|
required TResult Function(List<ProductQuantity> items, String customerName,
|
|
|
|
|
OrderType orderType, TableModel table, PaymentMethod paymentMethod)
|
|
|
|
|
createWithPayment,
|
|
|
|
|
required TResult Function(List<ProductQuantity> items, String orderId)
|
|
|
|
|
addToOrder,
|
|
|
|
|
required TResult Function(OrderItem item) toggleItem,
|
|
|
|
|
required TResult Function(bool selectAll) toggleSelectAll,
|
|
|
|
|
required TResult Function() refund,
|
|
|
|
|
@ -1187,6 +1434,7 @@ class _$RefundImpl implements _Refund {
|
|
|
|
|
TResult? Function(List<ProductQuantity> items, String customerName,
|
|
|
|
|
OrderType orderType, TableModel table, PaymentMethod paymentMethod)?
|
|
|
|
|
createWithPayment,
|
|
|
|
|
TResult? Function(List<ProductQuantity> items, String orderId)? addToOrder,
|
|
|
|
|
TResult? Function(OrderItem item)? toggleItem,
|
|
|
|
|
TResult? Function(bool selectAll)? toggleSelectAll,
|
|
|
|
|
TResult? Function()? refund,
|
|
|
|
|
@ -1204,6 +1452,7 @@ class _$RefundImpl implements _Refund {
|
|
|
|
|
TResult Function(List<ProductQuantity> items, String customerName,
|
|
|
|
|
OrderType orderType, TableModel table, PaymentMethod paymentMethod)?
|
|
|
|
|
createWithPayment,
|
|
|
|
|
TResult Function(List<ProductQuantity> items, String orderId)? addToOrder,
|
|
|
|
|
TResult Function(OrderItem item)? toggleItem,
|
|
|
|
|
TResult Function(bool selectAll)? toggleSelectAll,
|
|
|
|
|
TResult Function()? refund,
|
|
|
|
|
@ -1221,6 +1470,7 @@ class _$RefundImpl implements _Refund {
|
|
|
|
|
required TResult Function(_Started value) started,
|
|
|
|
|
required TResult Function(_Create value) create,
|
|
|
|
|
required TResult Function(_CreateWithPaymentMethod value) createWithPayment,
|
|
|
|
|
required TResult Function(_AddToOrder value) addToOrder,
|
|
|
|
|
required TResult Function(_ToggleItem value) toggleItem,
|
|
|
|
|
required TResult Function(_ToggleSelectAll value) toggleSelectAll,
|
|
|
|
|
required TResult Function(_Refund value) refund,
|
|
|
|
|
@ -1234,6 +1484,7 @@ class _$RefundImpl implements _Refund {
|
|
|
|
|
TResult? Function(_Started value)? started,
|
|
|
|
|
TResult? Function(_Create value)? create,
|
|
|
|
|
TResult? Function(_CreateWithPaymentMethod value)? createWithPayment,
|
|
|
|
|
TResult? Function(_AddToOrder value)? addToOrder,
|
|
|
|
|
TResult? Function(_ToggleItem value)? toggleItem,
|
|
|
|
|
TResult? Function(_ToggleSelectAll value)? toggleSelectAll,
|
|
|
|
|
TResult? Function(_Refund value)? refund,
|
|
|
|
|
@ -1247,6 +1498,7 @@ class _$RefundImpl implements _Refund {
|
|
|
|
|
TResult Function(_Started value)? started,
|
|
|
|
|
TResult Function(_Create value)? create,
|
|
|
|
|
TResult Function(_CreateWithPaymentMethod value)? createWithPayment,
|
|
|
|
|
TResult Function(_AddToOrder value)? addToOrder,
|
|
|
|
|
TResult Function(_ToggleItem value)? toggleItem,
|
|
|
|
|
TResult Function(_ToggleSelectAll value)? toggleSelectAll,
|
|
|
|
|
TResult Function(_Refund value)? refund,
|
|
|
|
|
|