|
|
|
|
@ -25,8 +25,6 @@ mixin _$CheckoutFormEvent {
|
|
|
|
|
removeItem,
|
|
|
|
|
required TResult Function(Product product, String notes) updateItemNotes,
|
|
|
|
|
required TResult Function(OrderType orderType) updateOrderType,
|
|
|
|
|
required TResult Function(Delivery delivery) updateDelivery,
|
|
|
|
|
required TResult Function(Table? table) updateTable,
|
|
|
|
|
}) => throw _privateConstructorUsedError;
|
|
|
|
|
@optionalTypeArgs
|
|
|
|
|
TResult? whenOrNull<TResult extends Object?>({
|
|
|
|
|
@ -35,8 +33,6 @@ mixin _$CheckoutFormEvent {
|
|
|
|
|
TResult? Function(Product product, ProductVariant? variant)? removeItem,
|
|
|
|
|
TResult? Function(Product product, String notes)? updateItemNotes,
|
|
|
|
|
TResult? Function(OrderType orderType)? updateOrderType,
|
|
|
|
|
TResult? Function(Delivery delivery)? updateDelivery,
|
|
|
|
|
TResult? Function(Table? table)? updateTable,
|
|
|
|
|
}) => throw _privateConstructorUsedError;
|
|
|
|
|
@optionalTypeArgs
|
|
|
|
|
TResult maybeWhen<TResult extends Object?>({
|
|
|
|
|
@ -45,8 +41,6 @@ mixin _$CheckoutFormEvent {
|
|
|
|
|
TResult Function(Product product, ProductVariant? variant)? removeItem,
|
|
|
|
|
TResult Function(Product product, String notes)? updateItemNotes,
|
|
|
|
|
TResult Function(OrderType orderType)? updateOrderType,
|
|
|
|
|
TResult Function(Delivery delivery)? updateDelivery,
|
|
|
|
|
TResult Function(Table? table)? updateTable,
|
|
|
|
|
required TResult orElse(),
|
|
|
|
|
}) => throw _privateConstructorUsedError;
|
|
|
|
|
@optionalTypeArgs
|
|
|
|
|
@ -56,8 +50,6 @@ mixin _$CheckoutFormEvent {
|
|
|
|
|
required TResult Function(_RemoveItem value) removeItem,
|
|
|
|
|
required TResult Function(_UpdateItemNotes value) updateItemNotes,
|
|
|
|
|
required TResult Function(_UpdateOrderType value) updateOrderType,
|
|
|
|
|
required TResult Function(_UpdateDelivery value) updateDelivery,
|
|
|
|
|
required TResult Function(_UpdateTable value) updateTable,
|
|
|
|
|
}) => throw _privateConstructorUsedError;
|
|
|
|
|
@optionalTypeArgs
|
|
|
|
|
TResult? mapOrNull<TResult extends Object?>({
|
|
|
|
|
@ -66,8 +58,6 @@ mixin _$CheckoutFormEvent {
|
|
|
|
|
TResult? Function(_RemoveItem value)? removeItem,
|
|
|
|
|
TResult? Function(_UpdateItemNotes value)? updateItemNotes,
|
|
|
|
|
TResult? Function(_UpdateOrderType value)? updateOrderType,
|
|
|
|
|
TResult? Function(_UpdateDelivery value)? updateDelivery,
|
|
|
|
|
TResult? Function(_UpdateTable value)? updateTable,
|
|
|
|
|
}) => throw _privateConstructorUsedError;
|
|
|
|
|
@optionalTypeArgs
|
|
|
|
|
TResult maybeMap<TResult extends Object?>({
|
|
|
|
|
@ -76,8 +66,6 @@ mixin _$CheckoutFormEvent {
|
|
|
|
|
TResult Function(_RemoveItem value)? removeItem,
|
|
|
|
|
TResult Function(_UpdateItemNotes value)? updateItemNotes,
|
|
|
|
|
TResult Function(_UpdateOrderType value)? updateOrderType,
|
|
|
|
|
TResult Function(_UpdateDelivery value)? updateDelivery,
|
|
|
|
|
TResult Function(_UpdateTable value)? updateTable,
|
|
|
|
|
required TResult orElse(),
|
|
|
|
|
}) => throw _privateConstructorUsedError;
|
|
|
|
|
}
|
|
|
|
|
@ -186,8 +174,6 @@ class _$StartedImpl implements _Started {
|
|
|
|
|
removeItem,
|
|
|
|
|
required TResult Function(Product product, String notes) updateItemNotes,
|
|
|
|
|
required TResult Function(OrderType orderType) updateOrderType,
|
|
|
|
|
required TResult Function(Delivery delivery) updateDelivery,
|
|
|
|
|
required TResult Function(Table? table) updateTable,
|
|
|
|
|
}) {
|
|
|
|
|
return started(items);
|
|
|
|
|
}
|
|
|
|
|
@ -200,8 +186,6 @@ class _$StartedImpl implements _Started {
|
|
|
|
|
TResult? Function(Product product, ProductVariant? variant)? removeItem,
|
|
|
|
|
TResult? Function(Product product, String notes)? updateItemNotes,
|
|
|
|
|
TResult? Function(OrderType orderType)? updateOrderType,
|
|
|
|
|
TResult? Function(Delivery delivery)? updateDelivery,
|
|
|
|
|
TResult? Function(Table? table)? updateTable,
|
|
|
|
|
}) {
|
|
|
|
|
return started?.call(items);
|
|
|
|
|
}
|
|
|
|
|
@ -214,8 +198,6 @@ class _$StartedImpl implements _Started {
|
|
|
|
|
TResult Function(Product product, ProductVariant? variant)? removeItem,
|
|
|
|
|
TResult Function(Product product, String notes)? updateItemNotes,
|
|
|
|
|
TResult Function(OrderType orderType)? updateOrderType,
|
|
|
|
|
TResult Function(Delivery delivery)? updateDelivery,
|
|
|
|
|
TResult Function(Table? table)? updateTable,
|
|
|
|
|
required TResult orElse(),
|
|
|
|
|
}) {
|
|
|
|
|
if (started != null) {
|
|
|
|
|
@ -232,8 +214,6 @@ class _$StartedImpl implements _Started {
|
|
|
|
|
required TResult Function(_RemoveItem value) removeItem,
|
|
|
|
|
required TResult Function(_UpdateItemNotes value) updateItemNotes,
|
|
|
|
|
required TResult Function(_UpdateOrderType value) updateOrderType,
|
|
|
|
|
required TResult Function(_UpdateDelivery value) updateDelivery,
|
|
|
|
|
required TResult Function(_UpdateTable value) updateTable,
|
|
|
|
|
}) {
|
|
|
|
|
return started(this);
|
|
|
|
|
}
|
|
|
|
|
@ -246,8 +226,6 @@ class _$StartedImpl implements _Started {
|
|
|
|
|
TResult? Function(_RemoveItem value)? removeItem,
|
|
|
|
|
TResult? Function(_UpdateItemNotes value)? updateItemNotes,
|
|
|
|
|
TResult? Function(_UpdateOrderType value)? updateOrderType,
|
|
|
|
|
TResult? Function(_UpdateDelivery value)? updateDelivery,
|
|
|
|
|
TResult? Function(_UpdateTable value)? updateTable,
|
|
|
|
|
}) {
|
|
|
|
|
return started?.call(this);
|
|
|
|
|
}
|
|
|
|
|
@ -260,8 +238,6 @@ class _$StartedImpl implements _Started {
|
|
|
|
|
TResult Function(_RemoveItem value)? removeItem,
|
|
|
|
|
TResult Function(_UpdateItemNotes value)? updateItemNotes,
|
|
|
|
|
TResult Function(_UpdateOrderType value)? updateOrderType,
|
|
|
|
|
TResult Function(_UpdateDelivery value)? updateDelivery,
|
|
|
|
|
TResult Function(_UpdateTable value)? updateTable,
|
|
|
|
|
required TResult orElse(),
|
|
|
|
|
}) {
|
|
|
|
|
if (started != null) {
|
|
|
|
|
@ -393,8 +369,6 @@ class _$AddItemImpl implements _AddItem {
|
|
|
|
|
removeItem,
|
|
|
|
|
required TResult Function(Product product, String notes) updateItemNotes,
|
|
|
|
|
required TResult Function(OrderType orderType) updateOrderType,
|
|
|
|
|
required TResult Function(Delivery delivery) updateDelivery,
|
|
|
|
|
required TResult Function(Table? table) updateTable,
|
|
|
|
|
}) {
|
|
|
|
|
return addItem(product, variant);
|
|
|
|
|
}
|
|
|
|
|
@ -407,8 +381,6 @@ class _$AddItemImpl implements _AddItem {
|
|
|
|
|
TResult? Function(Product product, ProductVariant? variant)? removeItem,
|
|
|
|
|
TResult? Function(Product product, String notes)? updateItemNotes,
|
|
|
|
|
TResult? Function(OrderType orderType)? updateOrderType,
|
|
|
|
|
TResult? Function(Delivery delivery)? updateDelivery,
|
|
|
|
|
TResult? Function(Table? table)? updateTable,
|
|
|
|
|
}) {
|
|
|
|
|
return addItem?.call(product, variant);
|
|
|
|
|
}
|
|
|
|
|
@ -421,8 +393,6 @@ class _$AddItemImpl implements _AddItem {
|
|
|
|
|
TResult Function(Product product, ProductVariant? variant)? removeItem,
|
|
|
|
|
TResult Function(Product product, String notes)? updateItemNotes,
|
|
|
|
|
TResult Function(OrderType orderType)? updateOrderType,
|
|
|
|
|
TResult Function(Delivery delivery)? updateDelivery,
|
|
|
|
|
TResult Function(Table? table)? updateTable,
|
|
|
|
|
required TResult orElse(),
|
|
|
|
|
}) {
|
|
|
|
|
if (addItem != null) {
|
|
|
|
|
@ -439,8 +409,6 @@ class _$AddItemImpl implements _AddItem {
|
|
|
|
|
required TResult Function(_RemoveItem value) removeItem,
|
|
|
|
|
required TResult Function(_UpdateItemNotes value) updateItemNotes,
|
|
|
|
|
required TResult Function(_UpdateOrderType value) updateOrderType,
|
|
|
|
|
required TResult Function(_UpdateDelivery value) updateDelivery,
|
|
|
|
|
required TResult Function(_UpdateTable value) updateTable,
|
|
|
|
|
}) {
|
|
|
|
|
return addItem(this);
|
|
|
|
|
}
|
|
|
|
|
@ -453,8 +421,6 @@ class _$AddItemImpl implements _AddItem {
|
|
|
|
|
TResult? Function(_RemoveItem value)? removeItem,
|
|
|
|
|
TResult? Function(_UpdateItemNotes value)? updateItemNotes,
|
|
|
|
|
TResult? Function(_UpdateOrderType value)? updateOrderType,
|
|
|
|
|
TResult? Function(_UpdateDelivery value)? updateDelivery,
|
|
|
|
|
TResult? Function(_UpdateTable value)? updateTable,
|
|
|
|
|
}) {
|
|
|
|
|
return addItem?.call(this);
|
|
|
|
|
}
|
|
|
|
|
@ -467,8 +433,6 @@ class _$AddItemImpl implements _AddItem {
|
|
|
|
|
TResult Function(_RemoveItem value)? removeItem,
|
|
|
|
|
TResult Function(_UpdateItemNotes value)? updateItemNotes,
|
|
|
|
|
TResult Function(_UpdateOrderType value)? updateOrderType,
|
|
|
|
|
TResult Function(_UpdateDelivery value)? updateDelivery,
|
|
|
|
|
TResult Function(_UpdateTable value)? updateTable,
|
|
|
|
|
required TResult orElse(),
|
|
|
|
|
}) {
|
|
|
|
|
if (addItem != null) {
|
|
|
|
|
@ -602,8 +566,6 @@ class _$RemoveItemImpl implements _RemoveItem {
|
|
|
|
|
removeItem,
|
|
|
|
|
required TResult Function(Product product, String notes) updateItemNotes,
|
|
|
|
|
required TResult Function(OrderType orderType) updateOrderType,
|
|
|
|
|
required TResult Function(Delivery delivery) updateDelivery,
|
|
|
|
|
required TResult Function(Table? table) updateTable,
|
|
|
|
|
}) {
|
|
|
|
|
return removeItem(product, variant);
|
|
|
|
|
}
|
|
|
|
|
@ -616,8 +578,6 @@ class _$RemoveItemImpl implements _RemoveItem {
|
|
|
|
|
TResult? Function(Product product, ProductVariant? variant)? removeItem,
|
|
|
|
|
TResult? Function(Product product, String notes)? updateItemNotes,
|
|
|
|
|
TResult? Function(OrderType orderType)? updateOrderType,
|
|
|
|
|
TResult? Function(Delivery delivery)? updateDelivery,
|
|
|
|
|
TResult? Function(Table? table)? updateTable,
|
|
|
|
|
}) {
|
|
|
|
|
return removeItem?.call(product, variant);
|
|
|
|
|
}
|
|
|
|
|
@ -630,8 +590,6 @@ class _$RemoveItemImpl implements _RemoveItem {
|
|
|
|
|
TResult Function(Product product, ProductVariant? variant)? removeItem,
|
|
|
|
|
TResult Function(Product product, String notes)? updateItemNotes,
|
|
|
|
|
TResult Function(OrderType orderType)? updateOrderType,
|
|
|
|
|
TResult Function(Delivery delivery)? updateDelivery,
|
|
|
|
|
TResult Function(Table? table)? updateTable,
|
|
|
|
|
required TResult orElse(),
|
|
|
|
|
}) {
|
|
|
|
|
if (removeItem != null) {
|
|
|
|
|
@ -648,8 +606,6 @@ class _$RemoveItemImpl implements _RemoveItem {
|
|
|
|
|
required TResult Function(_RemoveItem value) removeItem,
|
|
|
|
|
required TResult Function(_UpdateItemNotes value) updateItemNotes,
|
|
|
|
|
required TResult Function(_UpdateOrderType value) updateOrderType,
|
|
|
|
|
required TResult Function(_UpdateDelivery value) updateDelivery,
|
|
|
|
|
required TResult Function(_UpdateTable value) updateTable,
|
|
|
|
|
}) {
|
|
|
|
|
return removeItem(this);
|
|
|
|
|
}
|
|
|
|
|
@ -662,8 +618,6 @@ class _$RemoveItemImpl implements _RemoveItem {
|
|
|
|
|
TResult? Function(_RemoveItem value)? removeItem,
|
|
|
|
|
TResult? Function(_UpdateItemNotes value)? updateItemNotes,
|
|
|
|
|
TResult? Function(_UpdateOrderType value)? updateOrderType,
|
|
|
|
|
TResult? Function(_UpdateDelivery value)? updateDelivery,
|
|
|
|
|
TResult? Function(_UpdateTable value)? updateTable,
|
|
|
|
|
}) {
|
|
|
|
|
return removeItem?.call(this);
|
|
|
|
|
}
|
|
|
|
|
@ -676,8 +630,6 @@ class _$RemoveItemImpl implements _RemoveItem {
|
|
|
|
|
TResult Function(_RemoveItem value)? removeItem,
|
|
|
|
|
TResult Function(_UpdateItemNotes value)? updateItemNotes,
|
|
|
|
|
TResult Function(_UpdateOrderType value)? updateOrderType,
|
|
|
|
|
TResult Function(_UpdateDelivery value)? updateDelivery,
|
|
|
|
|
TResult Function(_UpdateTable value)? updateTable,
|
|
|
|
|
required TResult orElse(),
|
|
|
|
|
}) {
|
|
|
|
|
if (removeItem != null) {
|
|
|
|
|
@ -801,8 +753,6 @@ class _$UpdateItemNotesImpl implements _UpdateItemNotes {
|
|
|
|
|
removeItem,
|
|
|
|
|
required TResult Function(Product product, String notes) updateItemNotes,
|
|
|
|
|
required TResult Function(OrderType orderType) updateOrderType,
|
|
|
|
|
required TResult Function(Delivery delivery) updateDelivery,
|
|
|
|
|
required TResult Function(Table? table) updateTable,
|
|
|
|
|
}) {
|
|
|
|
|
return updateItemNotes(product, notes);
|
|
|
|
|
}
|
|
|
|
|
@ -815,8 +765,6 @@ class _$UpdateItemNotesImpl implements _UpdateItemNotes {
|
|
|
|
|
TResult? Function(Product product, ProductVariant? variant)? removeItem,
|
|
|
|
|
TResult? Function(Product product, String notes)? updateItemNotes,
|
|
|
|
|
TResult? Function(OrderType orderType)? updateOrderType,
|
|
|
|
|
TResult? Function(Delivery delivery)? updateDelivery,
|
|
|
|
|
TResult? Function(Table? table)? updateTable,
|
|
|
|
|
}) {
|
|
|
|
|
return updateItemNotes?.call(product, notes);
|
|
|
|
|
}
|
|
|
|
|
@ -829,8 +777,6 @@ class _$UpdateItemNotesImpl implements _UpdateItemNotes {
|
|
|
|
|
TResult Function(Product product, ProductVariant? variant)? removeItem,
|
|
|
|
|
TResult Function(Product product, String notes)? updateItemNotes,
|
|
|
|
|
TResult Function(OrderType orderType)? updateOrderType,
|
|
|
|
|
TResult Function(Delivery delivery)? updateDelivery,
|
|
|
|
|
TResult Function(Table? table)? updateTable,
|
|
|
|
|
required TResult orElse(),
|
|
|
|
|
}) {
|
|
|
|
|
if (updateItemNotes != null) {
|
|
|
|
|
@ -847,8 +793,6 @@ class _$UpdateItemNotesImpl implements _UpdateItemNotes {
|
|
|
|
|
required TResult Function(_RemoveItem value) removeItem,
|
|
|
|
|
required TResult Function(_UpdateItemNotes value) updateItemNotes,
|
|
|
|
|
required TResult Function(_UpdateOrderType value) updateOrderType,
|
|
|
|
|
required TResult Function(_UpdateDelivery value) updateDelivery,
|
|
|
|
|
required TResult Function(_UpdateTable value) updateTable,
|
|
|
|
|
}) {
|
|
|
|
|
return updateItemNotes(this);
|
|
|
|
|
}
|
|
|
|
|
@ -861,8 +805,6 @@ class _$UpdateItemNotesImpl implements _UpdateItemNotes {
|
|
|
|
|
TResult? Function(_RemoveItem value)? removeItem,
|
|
|
|
|
TResult? Function(_UpdateItemNotes value)? updateItemNotes,
|
|
|
|
|
TResult? Function(_UpdateOrderType value)? updateOrderType,
|
|
|
|
|
TResult? Function(_UpdateDelivery value)? updateDelivery,
|
|
|
|
|
TResult? Function(_UpdateTable value)? updateTable,
|
|
|
|
|
}) {
|
|
|
|
|
return updateItemNotes?.call(this);
|
|
|
|
|
}
|
|
|
|
|
@ -875,8 +817,6 @@ class _$UpdateItemNotesImpl implements _UpdateItemNotes {
|
|
|
|
|
TResult Function(_RemoveItem value)? removeItem,
|
|
|
|
|
TResult Function(_UpdateItemNotes value)? updateItemNotes,
|
|
|
|
|
TResult Function(_UpdateOrderType value)? updateOrderType,
|
|
|
|
|
TResult Function(_UpdateDelivery value)? updateDelivery,
|
|
|
|
|
TResult Function(_UpdateTable value)? updateTable,
|
|
|
|
|
required TResult orElse(),
|
|
|
|
|
}) {
|
|
|
|
|
if (updateItemNotes != null) {
|
|
|
|
|
@ -980,8 +920,6 @@ class _$UpdateOrderTypeImpl implements _UpdateOrderType {
|
|
|
|
|
removeItem,
|
|
|
|
|
required TResult Function(Product product, String notes) updateItemNotes,
|
|
|
|
|
required TResult Function(OrderType orderType) updateOrderType,
|
|
|
|
|
required TResult Function(Delivery delivery) updateDelivery,
|
|
|
|
|
required TResult Function(Table? table) updateTable,
|
|
|
|
|
}) {
|
|
|
|
|
return updateOrderType(orderType);
|
|
|
|
|
}
|
|
|
|
|
@ -994,8 +932,6 @@ class _$UpdateOrderTypeImpl implements _UpdateOrderType {
|
|
|
|
|
TResult? Function(Product product, ProductVariant? variant)? removeItem,
|
|
|
|
|
TResult? Function(Product product, String notes)? updateItemNotes,
|
|
|
|
|
TResult? Function(OrderType orderType)? updateOrderType,
|
|
|
|
|
TResult? Function(Delivery delivery)? updateDelivery,
|
|
|
|
|
TResult? Function(Table? table)? updateTable,
|
|
|
|
|
}) {
|
|
|
|
|
return updateOrderType?.call(orderType);
|
|
|
|
|
}
|
|
|
|
|
@ -1008,8 +944,6 @@ class _$UpdateOrderTypeImpl implements _UpdateOrderType {
|
|
|
|
|
TResult Function(Product product, ProductVariant? variant)? removeItem,
|
|
|
|
|
TResult Function(Product product, String notes)? updateItemNotes,
|
|
|
|
|
TResult Function(OrderType orderType)? updateOrderType,
|
|
|
|
|
TResult Function(Delivery delivery)? updateDelivery,
|
|
|
|
|
TResult Function(Table? table)? updateTable,
|
|
|
|
|
required TResult orElse(),
|
|
|
|
|
}) {
|
|
|
|
|
if (updateOrderType != null) {
|
|
|
|
|
@ -1026,8 +960,6 @@ class _$UpdateOrderTypeImpl implements _UpdateOrderType {
|
|
|
|
|
required TResult Function(_RemoveItem value) removeItem,
|
|
|
|
|
required TResult Function(_UpdateItemNotes value) updateItemNotes,
|
|
|
|
|
required TResult Function(_UpdateOrderType value) updateOrderType,
|
|
|
|
|
required TResult Function(_UpdateDelivery value) updateDelivery,
|
|
|
|
|
required TResult Function(_UpdateTable value) updateTable,
|
|
|
|
|
}) {
|
|
|
|
|
return updateOrderType(this);
|
|
|
|
|
}
|
|
|
|
|
@ -1040,8 +972,6 @@ class _$UpdateOrderTypeImpl implements _UpdateOrderType {
|
|
|
|
|
TResult? Function(_RemoveItem value)? removeItem,
|
|
|
|
|
TResult? Function(_UpdateItemNotes value)? updateItemNotes,
|
|
|
|
|
TResult? Function(_UpdateOrderType value)? updateOrderType,
|
|
|
|
|
TResult? Function(_UpdateDelivery value)? updateDelivery,
|
|
|
|
|
TResult? Function(_UpdateTable value)? updateTable,
|
|
|
|
|
}) {
|
|
|
|
|
return updateOrderType?.call(this);
|
|
|
|
|
}
|
|
|
|
|
@ -1054,8 +984,6 @@ class _$UpdateOrderTypeImpl implements _UpdateOrderType {
|
|
|
|
|
TResult Function(_RemoveItem value)? removeItem,
|
|
|
|
|
TResult Function(_UpdateItemNotes value)? updateItemNotes,
|
|
|
|
|
TResult Function(_UpdateOrderType value)? updateOrderType,
|
|
|
|
|
TResult Function(_UpdateDelivery value)? updateDelivery,
|
|
|
|
|
TResult Function(_UpdateTable value)? updateTable,
|
|
|
|
|
required TResult orElse(),
|
|
|
|
|
}) {
|
|
|
|
|
if (updateOrderType != null) {
|
|
|
|
|
@ -1078,372 +1006,6 @@ abstract class _UpdateOrderType implements CheckoutFormEvent {
|
|
|
|
|
throw _privateConstructorUsedError;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// @nodoc
|
|
|
|
|
abstract class _$$UpdateDeliveryImplCopyWith<$Res> {
|
|
|
|
|
factory _$$UpdateDeliveryImplCopyWith(
|
|
|
|
|
_$UpdateDeliveryImpl value,
|
|
|
|
|
$Res Function(_$UpdateDeliveryImpl) then,
|
|
|
|
|
) = __$$UpdateDeliveryImplCopyWithImpl<$Res>;
|
|
|
|
|
@useResult
|
|
|
|
|
$Res call({Delivery delivery});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// @nodoc
|
|
|
|
|
class __$$UpdateDeliveryImplCopyWithImpl<$Res>
|
|
|
|
|
extends _$CheckoutFormEventCopyWithImpl<$Res, _$UpdateDeliveryImpl>
|
|
|
|
|
implements _$$UpdateDeliveryImplCopyWith<$Res> {
|
|
|
|
|
__$$UpdateDeliveryImplCopyWithImpl(
|
|
|
|
|
_$UpdateDeliveryImpl _value,
|
|
|
|
|
$Res Function(_$UpdateDeliveryImpl) _then,
|
|
|
|
|
) : super(_value, _then);
|
|
|
|
|
|
|
|
|
|
/// Create a copy of CheckoutFormEvent
|
|
|
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
|
|
|
@pragma('vm:prefer-inline')
|
|
|
|
|
@override
|
|
|
|
|
$Res call({Object? delivery = null}) {
|
|
|
|
|
return _then(
|
|
|
|
|
_$UpdateDeliveryImpl(
|
|
|
|
|
null == delivery
|
|
|
|
|
? _value.delivery
|
|
|
|
|
: delivery // ignore: cast_nullable_to_non_nullable
|
|
|
|
|
as Delivery,
|
|
|
|
|
),
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// @nodoc
|
|
|
|
|
|
|
|
|
|
class _$UpdateDeliveryImpl implements _UpdateDelivery {
|
|
|
|
|
const _$UpdateDeliveryImpl(this.delivery);
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
final Delivery delivery;
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
String toString() {
|
|
|
|
|
return 'CheckoutFormEvent.updateDelivery(delivery: $delivery)';
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
bool operator ==(Object other) {
|
|
|
|
|
return identical(this, other) ||
|
|
|
|
|
(other.runtimeType == runtimeType &&
|
|
|
|
|
other is _$UpdateDeliveryImpl &&
|
|
|
|
|
(identical(other.delivery, delivery) ||
|
|
|
|
|
other.delivery == delivery));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
int get hashCode => Object.hash(runtimeType, delivery);
|
|
|
|
|
|
|
|
|
|
/// Create a copy of CheckoutFormEvent
|
|
|
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
|
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
|
|
|
@override
|
|
|
|
|
@pragma('vm:prefer-inline')
|
|
|
|
|
_$$UpdateDeliveryImplCopyWith<_$UpdateDeliveryImpl> get copyWith =>
|
|
|
|
|
__$$UpdateDeliveryImplCopyWithImpl<_$UpdateDeliveryImpl>(
|
|
|
|
|
this,
|
|
|
|
|
_$identity,
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
@optionalTypeArgs
|
|
|
|
|
TResult when<TResult extends Object?>({
|
|
|
|
|
required TResult Function(List<ProductQuantity> items) started,
|
|
|
|
|
required TResult Function(Product product, ProductVariant? variant) addItem,
|
|
|
|
|
required TResult Function(Product product, ProductVariant? variant)
|
|
|
|
|
removeItem,
|
|
|
|
|
required TResult Function(Product product, String notes) updateItemNotes,
|
|
|
|
|
required TResult Function(OrderType orderType) updateOrderType,
|
|
|
|
|
required TResult Function(Delivery delivery) updateDelivery,
|
|
|
|
|
required TResult Function(Table? table) updateTable,
|
|
|
|
|
}) {
|
|
|
|
|
return updateDelivery(delivery);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
@optionalTypeArgs
|
|
|
|
|
TResult? whenOrNull<TResult extends Object?>({
|
|
|
|
|
TResult? Function(List<ProductQuantity> items)? started,
|
|
|
|
|
TResult? Function(Product product, ProductVariant? variant)? addItem,
|
|
|
|
|
TResult? Function(Product product, ProductVariant? variant)? removeItem,
|
|
|
|
|
TResult? Function(Product product, String notes)? updateItemNotes,
|
|
|
|
|
TResult? Function(OrderType orderType)? updateOrderType,
|
|
|
|
|
TResult? Function(Delivery delivery)? updateDelivery,
|
|
|
|
|
TResult? Function(Table? table)? updateTable,
|
|
|
|
|
}) {
|
|
|
|
|
return updateDelivery?.call(delivery);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
@optionalTypeArgs
|
|
|
|
|
TResult maybeWhen<TResult extends Object?>({
|
|
|
|
|
TResult Function(List<ProductQuantity> items)? started,
|
|
|
|
|
TResult Function(Product product, ProductVariant? variant)? addItem,
|
|
|
|
|
TResult Function(Product product, ProductVariant? variant)? removeItem,
|
|
|
|
|
TResult Function(Product product, String notes)? updateItemNotes,
|
|
|
|
|
TResult Function(OrderType orderType)? updateOrderType,
|
|
|
|
|
TResult Function(Delivery delivery)? updateDelivery,
|
|
|
|
|
TResult Function(Table? table)? updateTable,
|
|
|
|
|
required TResult orElse(),
|
|
|
|
|
}) {
|
|
|
|
|
if (updateDelivery != null) {
|
|
|
|
|
return updateDelivery(delivery);
|
|
|
|
|
}
|
|
|
|
|
return orElse();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
@optionalTypeArgs
|
|
|
|
|
TResult map<TResult extends Object?>({
|
|
|
|
|
required TResult Function(_Started value) started,
|
|
|
|
|
required TResult Function(_AddItem value) addItem,
|
|
|
|
|
required TResult Function(_RemoveItem value) removeItem,
|
|
|
|
|
required TResult Function(_UpdateItemNotes value) updateItemNotes,
|
|
|
|
|
required TResult Function(_UpdateOrderType value) updateOrderType,
|
|
|
|
|
required TResult Function(_UpdateDelivery value) updateDelivery,
|
|
|
|
|
required TResult Function(_UpdateTable value) updateTable,
|
|
|
|
|
}) {
|
|
|
|
|
return updateDelivery(this);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
@optionalTypeArgs
|
|
|
|
|
TResult? mapOrNull<TResult extends Object?>({
|
|
|
|
|
TResult? Function(_Started value)? started,
|
|
|
|
|
TResult? Function(_AddItem value)? addItem,
|
|
|
|
|
TResult? Function(_RemoveItem value)? removeItem,
|
|
|
|
|
TResult? Function(_UpdateItemNotes value)? updateItemNotes,
|
|
|
|
|
TResult? Function(_UpdateOrderType value)? updateOrderType,
|
|
|
|
|
TResult? Function(_UpdateDelivery value)? updateDelivery,
|
|
|
|
|
TResult? Function(_UpdateTable value)? updateTable,
|
|
|
|
|
}) {
|
|
|
|
|
return updateDelivery?.call(this);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
@optionalTypeArgs
|
|
|
|
|
TResult maybeMap<TResult extends Object?>({
|
|
|
|
|
TResult Function(_Started value)? started,
|
|
|
|
|
TResult Function(_AddItem value)? addItem,
|
|
|
|
|
TResult Function(_RemoveItem value)? removeItem,
|
|
|
|
|
TResult Function(_UpdateItemNotes value)? updateItemNotes,
|
|
|
|
|
TResult Function(_UpdateOrderType value)? updateOrderType,
|
|
|
|
|
TResult Function(_UpdateDelivery value)? updateDelivery,
|
|
|
|
|
TResult Function(_UpdateTable value)? updateTable,
|
|
|
|
|
required TResult orElse(),
|
|
|
|
|
}) {
|
|
|
|
|
if (updateDelivery != null) {
|
|
|
|
|
return updateDelivery(this);
|
|
|
|
|
}
|
|
|
|
|
return orElse();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
abstract class _UpdateDelivery implements CheckoutFormEvent {
|
|
|
|
|
const factory _UpdateDelivery(final Delivery delivery) = _$UpdateDeliveryImpl;
|
|
|
|
|
|
|
|
|
|
Delivery get delivery;
|
|
|
|
|
|
|
|
|
|
/// Create a copy of CheckoutFormEvent
|
|
|
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
|
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
|
|
|
_$$UpdateDeliveryImplCopyWith<_$UpdateDeliveryImpl> get copyWith =>
|
|
|
|
|
throw _privateConstructorUsedError;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// @nodoc
|
|
|
|
|
abstract class _$$UpdateTableImplCopyWith<$Res> {
|
|
|
|
|
factory _$$UpdateTableImplCopyWith(
|
|
|
|
|
_$UpdateTableImpl value,
|
|
|
|
|
$Res Function(_$UpdateTableImpl) then,
|
|
|
|
|
) = __$$UpdateTableImplCopyWithImpl<$Res>;
|
|
|
|
|
@useResult
|
|
|
|
|
$Res call({Table? table});
|
|
|
|
|
|
|
|
|
|
$TableCopyWith<$Res>? get table;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// @nodoc
|
|
|
|
|
class __$$UpdateTableImplCopyWithImpl<$Res>
|
|
|
|
|
extends _$CheckoutFormEventCopyWithImpl<$Res, _$UpdateTableImpl>
|
|
|
|
|
implements _$$UpdateTableImplCopyWith<$Res> {
|
|
|
|
|
__$$UpdateTableImplCopyWithImpl(
|
|
|
|
|
_$UpdateTableImpl _value,
|
|
|
|
|
$Res Function(_$UpdateTableImpl) _then,
|
|
|
|
|
) : super(_value, _then);
|
|
|
|
|
|
|
|
|
|
/// Create a copy of CheckoutFormEvent
|
|
|
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
|
|
|
@pragma('vm:prefer-inline')
|
|
|
|
|
@override
|
|
|
|
|
$Res call({Object? table = freezed}) {
|
|
|
|
|
return _then(
|
|
|
|
|
_$UpdateTableImpl(
|
|
|
|
|
freezed == table
|
|
|
|
|
? _value.table
|
|
|
|
|
: table // ignore: cast_nullable_to_non_nullable
|
|
|
|
|
as Table?,
|
|
|
|
|
),
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// Create a copy of CheckoutFormEvent
|
|
|
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
|
|
|
@override
|
|
|
|
|
@pragma('vm:prefer-inline')
|
|
|
|
|
$TableCopyWith<$Res>? get table {
|
|
|
|
|
if (_value.table == null) {
|
|
|
|
|
return null;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return $TableCopyWith<$Res>(_value.table!, (value) {
|
|
|
|
|
return _then(_value.copyWith(table: value));
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// @nodoc
|
|
|
|
|
|
|
|
|
|
class _$UpdateTableImpl implements _UpdateTable {
|
|
|
|
|
const _$UpdateTableImpl(this.table);
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
final Table? table;
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
String toString() {
|
|
|
|
|
return 'CheckoutFormEvent.updateTable(table: $table)';
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
bool operator ==(Object other) {
|
|
|
|
|
return identical(this, other) ||
|
|
|
|
|
(other.runtimeType == runtimeType &&
|
|
|
|
|
other is _$UpdateTableImpl &&
|
|
|
|
|
(identical(other.table, table) || other.table == table));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
int get hashCode => Object.hash(runtimeType, table);
|
|
|
|
|
|
|
|
|
|
/// Create a copy of CheckoutFormEvent
|
|
|
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
|
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
|
|
|
@override
|
|
|
|
|
@pragma('vm:prefer-inline')
|
|
|
|
|
_$$UpdateTableImplCopyWith<_$UpdateTableImpl> get copyWith =>
|
|
|
|
|
__$$UpdateTableImplCopyWithImpl<_$UpdateTableImpl>(this, _$identity);
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
@optionalTypeArgs
|
|
|
|
|
TResult when<TResult extends Object?>({
|
|
|
|
|
required TResult Function(List<ProductQuantity> items) started,
|
|
|
|
|
required TResult Function(Product product, ProductVariant? variant) addItem,
|
|
|
|
|
required TResult Function(Product product, ProductVariant? variant)
|
|
|
|
|
removeItem,
|
|
|
|
|
required TResult Function(Product product, String notes) updateItemNotes,
|
|
|
|
|
required TResult Function(OrderType orderType) updateOrderType,
|
|
|
|
|
required TResult Function(Delivery delivery) updateDelivery,
|
|
|
|
|
required TResult Function(Table? table) updateTable,
|
|
|
|
|
}) {
|
|
|
|
|
return updateTable(table);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
@optionalTypeArgs
|
|
|
|
|
TResult? whenOrNull<TResult extends Object?>({
|
|
|
|
|
TResult? Function(List<ProductQuantity> items)? started,
|
|
|
|
|
TResult? Function(Product product, ProductVariant? variant)? addItem,
|
|
|
|
|
TResult? Function(Product product, ProductVariant? variant)? removeItem,
|
|
|
|
|
TResult? Function(Product product, String notes)? updateItemNotes,
|
|
|
|
|
TResult? Function(OrderType orderType)? updateOrderType,
|
|
|
|
|
TResult? Function(Delivery delivery)? updateDelivery,
|
|
|
|
|
TResult? Function(Table? table)? updateTable,
|
|
|
|
|
}) {
|
|
|
|
|
return updateTable?.call(table);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
@optionalTypeArgs
|
|
|
|
|
TResult maybeWhen<TResult extends Object?>({
|
|
|
|
|
TResult Function(List<ProductQuantity> items)? started,
|
|
|
|
|
TResult Function(Product product, ProductVariant? variant)? addItem,
|
|
|
|
|
TResult Function(Product product, ProductVariant? variant)? removeItem,
|
|
|
|
|
TResult Function(Product product, String notes)? updateItemNotes,
|
|
|
|
|
TResult Function(OrderType orderType)? updateOrderType,
|
|
|
|
|
TResult Function(Delivery delivery)? updateDelivery,
|
|
|
|
|
TResult Function(Table? table)? updateTable,
|
|
|
|
|
required TResult orElse(),
|
|
|
|
|
}) {
|
|
|
|
|
if (updateTable != null) {
|
|
|
|
|
return updateTable(table);
|
|
|
|
|
}
|
|
|
|
|
return orElse();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
@optionalTypeArgs
|
|
|
|
|
TResult map<TResult extends Object?>({
|
|
|
|
|
required TResult Function(_Started value) started,
|
|
|
|
|
required TResult Function(_AddItem value) addItem,
|
|
|
|
|
required TResult Function(_RemoveItem value) removeItem,
|
|
|
|
|
required TResult Function(_UpdateItemNotes value) updateItemNotes,
|
|
|
|
|
required TResult Function(_UpdateOrderType value) updateOrderType,
|
|
|
|
|
required TResult Function(_UpdateDelivery value) updateDelivery,
|
|
|
|
|
required TResult Function(_UpdateTable value) updateTable,
|
|
|
|
|
}) {
|
|
|
|
|
return updateTable(this);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
@optionalTypeArgs
|
|
|
|
|
TResult? mapOrNull<TResult extends Object?>({
|
|
|
|
|
TResult? Function(_Started value)? started,
|
|
|
|
|
TResult? Function(_AddItem value)? addItem,
|
|
|
|
|
TResult? Function(_RemoveItem value)? removeItem,
|
|
|
|
|
TResult? Function(_UpdateItemNotes value)? updateItemNotes,
|
|
|
|
|
TResult? Function(_UpdateOrderType value)? updateOrderType,
|
|
|
|
|
TResult? Function(_UpdateDelivery value)? updateDelivery,
|
|
|
|
|
TResult? Function(_UpdateTable value)? updateTable,
|
|
|
|
|
}) {
|
|
|
|
|
return updateTable?.call(this);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
@optionalTypeArgs
|
|
|
|
|
TResult maybeMap<TResult extends Object?>({
|
|
|
|
|
TResult Function(_Started value)? started,
|
|
|
|
|
TResult Function(_AddItem value)? addItem,
|
|
|
|
|
TResult Function(_RemoveItem value)? removeItem,
|
|
|
|
|
TResult Function(_UpdateItemNotes value)? updateItemNotes,
|
|
|
|
|
TResult Function(_UpdateOrderType value)? updateOrderType,
|
|
|
|
|
TResult Function(_UpdateDelivery value)? updateDelivery,
|
|
|
|
|
TResult Function(_UpdateTable value)? updateTable,
|
|
|
|
|
required TResult orElse(),
|
|
|
|
|
}) {
|
|
|
|
|
if (updateTable != null) {
|
|
|
|
|
return updateTable(this);
|
|
|
|
|
}
|
|
|
|
|
return orElse();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
abstract class _UpdateTable implements CheckoutFormEvent {
|
|
|
|
|
const factory _UpdateTable(final Table? table) = _$UpdateTableImpl;
|
|
|
|
|
|
|
|
|
|
Table? get table;
|
|
|
|
|
|
|
|
|
|
/// Create a copy of CheckoutFormEvent
|
|
|
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
|
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
|
|
|
_$$UpdateTableImplCopyWith<_$UpdateTableImpl> get copyWith =>
|
|
|
|
|
throw _privateConstructorUsedError;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// @nodoc
|
|
|
|
|
mixin _$CheckoutFormState {
|
|
|
|
|
List<ProductQuantity> get items => throw _privateConstructorUsedError;
|
|
|
|
|
@ -1456,7 +1018,6 @@ mixin _$CheckoutFormState {
|
|
|
|
|
String get draftName => throw _privateConstructorUsedError;
|
|
|
|
|
OrderType get orderType => throw _privateConstructorUsedError;
|
|
|
|
|
Delivery? get delivery => throw _privateConstructorUsedError;
|
|
|
|
|
Table? get table => throw _privateConstructorUsedError;
|
|
|
|
|
bool get isLoading => throw _privateConstructorUsedError;
|
|
|
|
|
|
|
|
|
|
/// Create a copy of CheckoutFormState
|
|
|
|
|
@ -1484,11 +1045,8 @@ abstract class $CheckoutFormStateCopyWith<$Res> {
|
|
|
|
|
String draftName,
|
|
|
|
|
OrderType orderType,
|
|
|
|
|
Delivery? delivery,
|
|
|
|
|
Table? table,
|
|
|
|
|
bool isLoading,
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
$TableCopyWith<$Res>? get table;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// @nodoc
|
|
|
|
|
@ -1516,7 +1074,6 @@ class _$CheckoutFormStateCopyWithImpl<$Res, $Val extends CheckoutFormState>
|
|
|
|
|
Object? draftName = null,
|
|
|
|
|
Object? orderType = null,
|
|
|
|
|
Object? delivery = freezed,
|
|
|
|
|
Object? table = freezed,
|
|
|
|
|
Object? isLoading = null,
|
|
|
|
|
}) {
|
|
|
|
|
return _then(
|
|
|
|
|
@ -1561,10 +1118,6 @@ class _$CheckoutFormStateCopyWithImpl<$Res, $Val extends CheckoutFormState>
|
|
|
|
|
? _value.delivery
|
|
|
|
|
: delivery // ignore: cast_nullable_to_non_nullable
|
|
|
|
|
as Delivery?,
|
|
|
|
|
table: freezed == table
|
|
|
|
|
? _value.table
|
|
|
|
|
: table // ignore: cast_nullable_to_non_nullable
|
|
|
|
|
as Table?,
|
|
|
|
|
isLoading: null == isLoading
|
|
|
|
|
? _value.isLoading
|
|
|
|
|
: isLoading // ignore: cast_nullable_to_non_nullable
|
|
|
|
|
@ -1573,20 +1126,6 @@ class _$CheckoutFormStateCopyWithImpl<$Res, $Val extends CheckoutFormState>
|
|
|
|
|
as $Val,
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// Create a copy of CheckoutFormState
|
|
|
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
|
|
|
@override
|
|
|
|
|
@pragma('vm:prefer-inline')
|
|
|
|
|
$TableCopyWith<$Res>? get table {
|
|
|
|
|
if (_value.table == null) {
|
|
|
|
|
return null;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return $TableCopyWith<$Res>(_value.table!, (value) {
|
|
|
|
|
return _then(_value.copyWith(table: value) as $Val);
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// @nodoc
|
|
|
|
|
@ -1609,12 +1148,8 @@ abstract class _$$CheckoutFormStateImplCopyWith<$Res>
|
|
|
|
|
String draftName,
|
|
|
|
|
OrderType orderType,
|
|
|
|
|
Delivery? delivery,
|
|
|
|
|
Table? table,
|
|
|
|
|
bool isLoading,
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
$TableCopyWith<$Res>? get table;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// @nodoc
|
|
|
|
|
@ -1641,7 +1176,6 @@ class __$$CheckoutFormStateImplCopyWithImpl<$Res>
|
|
|
|
|
Object? draftName = null,
|
|
|
|
|
Object? orderType = null,
|
|
|
|
|
Object? delivery = freezed,
|
|
|
|
|
Object? table = freezed,
|
|
|
|
|
Object? isLoading = null,
|
|
|
|
|
}) {
|
|
|
|
|
return _then(
|
|
|
|
|
@ -1686,10 +1220,6 @@ class __$$CheckoutFormStateImplCopyWithImpl<$Res>
|
|
|
|
|
? _value.delivery
|
|
|
|
|
: delivery // ignore: cast_nullable_to_non_nullable
|
|
|
|
|
as Delivery?,
|
|
|
|
|
table: freezed == table
|
|
|
|
|
? _value.table
|
|
|
|
|
: table // ignore: cast_nullable_to_non_nullable
|
|
|
|
|
as Table?,
|
|
|
|
|
isLoading: null == isLoading
|
|
|
|
|
? _value.isLoading
|
|
|
|
|
: isLoading // ignore: cast_nullable_to_non_nullable
|
|
|
|
|
@ -1713,7 +1243,6 @@ class _$CheckoutFormStateImpl implements _CheckoutFormState {
|
|
|
|
|
required this.draftName,
|
|
|
|
|
required this.orderType,
|
|
|
|
|
this.delivery,
|
|
|
|
|
this.table,
|
|
|
|
|
this.isLoading = false,
|
|
|
|
|
}) : _items = items;
|
|
|
|
|
|
|
|
|
|
@ -1744,14 +1273,12 @@ class _$CheckoutFormStateImpl implements _CheckoutFormState {
|
|
|
|
|
@override
|
|
|
|
|
final Delivery? delivery;
|
|
|
|
|
@override
|
|
|
|
|
final Table? table;
|
|
|
|
|
@override
|
|
|
|
|
@JsonKey()
|
|
|
|
|
final bool isLoading;
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
String toString() {
|
|
|
|
|
return 'CheckoutFormState(items: $items, discount: $discount, discountAmount: $discountAmount, tax: $tax, serviceCharge: $serviceCharge, totalQuantity: $totalQuantity, totalPrice: $totalPrice, draftName: $draftName, orderType: $orderType, delivery: $delivery, table: $table, isLoading: $isLoading)';
|
|
|
|
|
return 'CheckoutFormState(items: $items, discount: $discount, discountAmount: $discountAmount, tax: $tax, serviceCharge: $serviceCharge, totalQuantity: $totalQuantity, totalPrice: $totalPrice, draftName: $draftName, orderType: $orderType, delivery: $delivery, isLoading: $isLoading)';
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
@ -1777,7 +1304,6 @@ class _$CheckoutFormStateImpl implements _CheckoutFormState {
|
|
|
|
|
other.orderType == orderType) &&
|
|
|
|
|
(identical(other.delivery, delivery) ||
|
|
|
|
|
other.delivery == delivery) &&
|
|
|
|
|
(identical(other.table, table) || other.table == table) &&
|
|
|
|
|
(identical(other.isLoading, isLoading) ||
|
|
|
|
|
other.isLoading == isLoading));
|
|
|
|
|
}
|
|
|
|
|
@ -1795,7 +1321,6 @@ class _$CheckoutFormStateImpl implements _CheckoutFormState {
|
|
|
|
|
draftName,
|
|
|
|
|
orderType,
|
|
|
|
|
delivery,
|
|
|
|
|
table,
|
|
|
|
|
isLoading,
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
@ -1823,7 +1348,6 @@ abstract class _CheckoutFormState implements CheckoutFormState {
|
|
|
|
|
required final String draftName,
|
|
|
|
|
required final OrderType orderType,
|
|
|
|
|
final Delivery? delivery,
|
|
|
|
|
final Table? table,
|
|
|
|
|
final bool isLoading,
|
|
|
|
|
}) = _$CheckoutFormStateImpl;
|
|
|
|
|
|
|
|
|
|
@ -1848,8 +1372,6 @@ abstract class _CheckoutFormState implements CheckoutFormState {
|
|
|
|
|
@override
|
|
|
|
|
Delivery? get delivery;
|
|
|
|
|
@override
|
|
|
|
|
Table? get table;
|
|
|
|
|
@override
|
|
|
|
|
bool get isLoading;
|
|
|
|
|
|
|
|
|
|
/// Create a copy of CheckoutFormState
|
|
|
|
|
|