|
|
|
|
@ -25,8 +25,6 @@ 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,
|
|
|
|
|
@ -41,7 +39,6 @@ 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,
|
|
|
|
|
@ -56,7 +53,6 @@ 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,
|
|
|
|
|
@ -68,7 +64,6 @@ 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,
|
|
|
|
|
@ -79,7 +74,6 @@ 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,
|
|
|
|
|
@ -90,7 +84,6 @@ 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,
|
|
|
|
|
@ -195,8 +188,6 @@ 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,
|
|
|
|
|
@ -214,7 +205,6 @@ 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,
|
|
|
|
|
@ -232,7 +222,6 @@ 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,
|
|
|
|
|
@ -250,7 +239,6 @@ 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,
|
|
|
|
|
@ -264,7 +252,6 @@ 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,
|
|
|
|
|
@ -278,7 +265,6 @@ 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,
|
|
|
|
|
@ -332,7 +318,7 @@ class __$$CreateImplCopyWithImpl<$Res>
|
|
|
|
|
Object? items = null,
|
|
|
|
|
Object? customerName = null,
|
|
|
|
|
Object? orderType = null,
|
|
|
|
|
Object? table = null,
|
|
|
|
|
Object? table = freezed,
|
|
|
|
|
}) {
|
|
|
|
|
return _then(_$CreateImpl(
|
|
|
|
|
items: null == items
|
|
|
|
|
@ -347,7 +333,7 @@ class __$$CreateImplCopyWithImpl<$Res>
|
|
|
|
|
? _value.orderType
|
|
|
|
|
: orderType // ignore: cast_nullable_to_non_nullable
|
|
|
|
|
as OrderType,
|
|
|
|
|
table: null == table
|
|
|
|
|
table: freezed == table
|
|
|
|
|
? _value.table
|
|
|
|
|
: table // ignore: cast_nullable_to_non_nullable
|
|
|
|
|
as TableModel,
|
|
|
|
|
@ -395,7 +381,7 @@ class _$CreateImpl implements _Create {
|
|
|
|
|
other.customerName == customerName) &&
|
|
|
|
|
(identical(other.orderType, orderType) ||
|
|
|
|
|
other.orderType == orderType) &&
|
|
|
|
|
(identical(other.table, table) || other.table == table));
|
|
|
|
|
const DeepCollectionEquality().equals(other.table, table));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
@ -404,7 +390,7 @@ class _$CreateImpl implements _Create {
|
|
|
|
|
const DeepCollectionEquality().hash(_items),
|
|
|
|
|
customerName,
|
|
|
|
|
orderType,
|
|
|
|
|
table);
|
|
|
|
|
const DeepCollectionEquality().hash(table));
|
|
|
|
|
|
|
|
|
|
/// Create a copy of OrderFormEvent
|
|
|
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
|
|
|
@ -424,8 +410,6 @@ 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,
|
|
|
|
|
@ -443,7 +427,6 @@ 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,7 +444,6 @@ 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,
|
|
|
|
|
@ -479,7 +461,6 @@ 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,
|
|
|
|
|
@ -493,7 +474,6 @@ 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,
|
|
|
|
|
@ -507,7 +487,6 @@ 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,
|
|
|
|
|
@ -571,7 +550,7 @@ class __$$CreateWithPaymentMethodImplCopyWithImpl<$Res>
|
|
|
|
|
Object? items = null,
|
|
|
|
|
Object? customerName = null,
|
|
|
|
|
Object? orderType = null,
|
|
|
|
|
Object? table = null,
|
|
|
|
|
Object? table = freezed,
|
|
|
|
|
Object? paymentMethod = null,
|
|
|
|
|
}) {
|
|
|
|
|
return _then(_$CreateWithPaymentMethodImpl(
|
|
|
|
|
@ -587,7 +566,7 @@ class __$$CreateWithPaymentMethodImplCopyWithImpl<$Res>
|
|
|
|
|
? _value.orderType
|
|
|
|
|
: orderType // ignore: cast_nullable_to_non_nullable
|
|
|
|
|
as OrderType,
|
|
|
|
|
table: null == table
|
|
|
|
|
table: freezed == table
|
|
|
|
|
? _value.table
|
|
|
|
|
: table // ignore: cast_nullable_to_non_nullable
|
|
|
|
|
as TableModel,
|
|
|
|
|
@ -642,7 +621,7 @@ class _$CreateWithPaymentMethodImpl implements _CreateWithPaymentMethod {
|
|
|
|
|
other.customerName == customerName) &&
|
|
|
|
|
(identical(other.orderType, orderType) ||
|
|
|
|
|
other.orderType == orderType) &&
|
|
|
|
|
(identical(other.table, table) || other.table == table) &&
|
|
|
|
|
const DeepCollectionEquality().equals(other.table, table) &&
|
|
|
|
|
(identical(other.paymentMethod, paymentMethod) ||
|
|
|
|
|
other.paymentMethod == paymentMethod));
|
|
|
|
|
}
|
|
|
|
|
@ -653,7 +632,7 @@ class _$CreateWithPaymentMethodImpl implements _CreateWithPaymentMethod {
|
|
|
|
|
const DeepCollectionEquality().hash(_items),
|
|
|
|
|
customerName,
|
|
|
|
|
orderType,
|
|
|
|
|
table,
|
|
|
|
|
const DeepCollectionEquality().hash(table),
|
|
|
|
|
paymentMethod);
|
|
|
|
|
|
|
|
|
|
/// Create a copy of OrderFormEvent
|
|
|
|
|
@ -675,8 +654,6 @@ 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,
|
|
|
|
|
@ -695,7 +672,6 @@ 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,
|
|
|
|
|
@ -714,7 +690,6 @@ 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,
|
|
|
|
|
@ -733,7 +708,6 @@ 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,
|
|
|
|
|
@ -747,7 +721,6 @@ 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,
|
|
|
|
|
@ -761,7 +734,6 @@ 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,
|
|
|
|
|
@ -796,209 +768,6 @@ 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(
|
|
|
|
|
@ -1074,8 +843,6 @@ 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,
|
|
|
|
|
@ -1093,7 +860,6 @@ 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,
|
|
|
|
|
@ -1111,7 +877,6 @@ 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,
|
|
|
|
|
@ -1129,7 +894,6 @@ 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,
|
|
|
|
|
@ -1143,7 +907,6 @@ 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,
|
|
|
|
|
@ -1157,7 +920,6 @@ 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,
|
|
|
|
|
@ -1259,8 +1021,6 @@ 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,
|
|
|
|
|
@ -1278,7 +1038,6 @@ 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,
|
|
|
|
|
@ -1296,7 +1055,6 @@ 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,
|
|
|
|
|
@ -1314,7 +1072,6 @@ 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,
|
|
|
|
|
@ -1328,7 +1085,6 @@ 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,
|
|
|
|
|
@ -1342,7 +1098,6 @@ 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,
|
|
|
|
|
@ -1415,8 +1170,6 @@ 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,
|
|
|
|
|
@ -1434,7 +1187,6 @@ 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,
|
|
|
|
|
@ -1452,7 +1204,6 @@ 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,
|
|
|
|
|
@ -1470,7 +1221,6 @@ 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,
|
|
|
|
|
@ -1484,7 +1234,6 @@ 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,
|
|
|
|
|
@ -1498,7 +1247,6 @@ 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,
|
|
|
|
|
|