|
|
|
|
@ -25,6 +25,8 @@ 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?>({
|
|
|
|
|
@ -33,6 +35,8 @@ 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?>({
|
|
|
|
|
@ -41,6 +45,8 @@ 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
|
|
|
|
|
@ -50,6 +56,8 @@ 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?>({
|
|
|
|
|
@ -58,6 +66,8 @@ 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?>({
|
|
|
|
|
@ -66,6 +76,8 @@ 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;
|
|
|
|
|
}
|
|
|
|
|
@ -174,6 +186,8 @@ 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);
|
|
|
|
|
}
|
|
|
|
|
@ -186,6 +200,8 @@ 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);
|
|
|
|
|
}
|
|
|
|
|
@ -198,6 +214,8 @@ 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) {
|
|
|
|
|
@ -214,6 +232,8 @@ 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);
|
|
|
|
|
}
|
|
|
|
|
@ -226,6 +246,8 @@ 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);
|
|
|
|
|
}
|
|
|
|
|
@ -238,6 +260,8 @@ 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) {
|
|
|
|
|
@ -369,6 +393,8 @@ 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);
|
|
|
|
|
}
|
|
|
|
|
@ -381,6 +407,8 @@ 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);
|
|
|
|
|
}
|
|
|
|
|
@ -393,6 +421,8 @@ 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) {
|
|
|
|
|
@ -409,6 +439,8 @@ 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);
|
|
|
|
|
}
|
|
|
|
|
@ -421,6 +453,8 @@ 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);
|
|
|
|
|
}
|
|
|
|
|
@ -433,6 +467,8 @@ 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) {
|
|
|
|
|
@ -566,6 +602,8 @@ 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);
|
|
|
|
|
}
|
|
|
|
|
@ -578,6 +616,8 @@ 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);
|
|
|
|
|
}
|
|
|
|
|
@ -590,6 +630,8 @@ 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) {
|
|
|
|
|
@ -606,6 +648,8 @@ 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);
|
|
|
|
|
}
|
|
|
|
|
@ -618,6 +662,8 @@ 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);
|
|
|
|
|
}
|
|
|
|
|
@ -630,6 +676,8 @@ 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) {
|
|
|
|
|
@ -753,6 +801,8 @@ 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);
|
|
|
|
|
}
|
|
|
|
|
@ -765,6 +815,8 @@ 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);
|
|
|
|
|
}
|
|
|
|
|
@ -777,6 +829,8 @@ 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) {
|
|
|
|
|
@ -793,6 +847,8 @@ 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);
|
|
|
|
|
}
|
|
|
|
|
@ -805,6 +861,8 @@ 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);
|
|
|
|
|
}
|
|
|
|
|
@ -817,6 +875,8 @@ 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) {
|
|
|
|
|
@ -920,6 +980,8 @@ 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);
|
|
|
|
|
}
|
|
|
|
|
@ -932,6 +994,8 @@ 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);
|
|
|
|
|
}
|
|
|
|
|
@ -944,6 +1008,8 @@ 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) {
|
|
|
|
|
@ -960,6 +1026,8 @@ 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);
|
|
|
|
|
}
|
|
|
|
|
@ -972,6 +1040,8 @@ 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);
|
|
|
|
|
}
|
|
|
|
|
@ -984,6 +1054,8 @@ 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) {
|
|
|
|
|
@ -1006,6 +1078,372 @@ 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;
|
|
|
|
|
@ -1018,6 +1456,7 @@ 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
|
|
|
|
|
@ -1045,8 +1484,11 @@ abstract class $CheckoutFormStateCopyWith<$Res> {
|
|
|
|
|
String draftName,
|
|
|
|
|
OrderType orderType,
|
|
|
|
|
Delivery? delivery,
|
|
|
|
|
Table? table,
|
|
|
|
|
bool isLoading,
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
$TableCopyWith<$Res>? get table;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// @nodoc
|
|
|
|
|
@ -1074,6 +1516,7 @@ class _$CheckoutFormStateCopyWithImpl<$Res, $Val extends CheckoutFormState>
|
|
|
|
|
Object? draftName = null,
|
|
|
|
|
Object? orderType = null,
|
|
|
|
|
Object? delivery = freezed,
|
|
|
|
|
Object? table = freezed,
|
|
|
|
|
Object? isLoading = null,
|
|
|
|
|
}) {
|
|
|
|
|
return _then(
|
|
|
|
|
@ -1118,6 +1561,10 @@ 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
|
|
|
|
|
@ -1126,6 +1573,20 @@ 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
|
|
|
|
|
@ -1148,8 +1609,12 @@ abstract class _$$CheckoutFormStateImplCopyWith<$Res>
|
|
|
|
|
String draftName,
|
|
|
|
|
OrderType orderType,
|
|
|
|
|
Delivery? delivery,
|
|
|
|
|
Table? table,
|
|
|
|
|
bool isLoading,
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
$TableCopyWith<$Res>? get table;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// @nodoc
|
|
|
|
|
@ -1176,6 +1641,7 @@ class __$$CheckoutFormStateImplCopyWithImpl<$Res>
|
|
|
|
|
Object? draftName = null,
|
|
|
|
|
Object? orderType = null,
|
|
|
|
|
Object? delivery = freezed,
|
|
|
|
|
Object? table = freezed,
|
|
|
|
|
Object? isLoading = null,
|
|
|
|
|
}) {
|
|
|
|
|
return _then(
|
|
|
|
|
@ -1220,6 +1686,10 @@ 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
|
|
|
|
|
@ -1243,6 +1713,7 @@ class _$CheckoutFormStateImpl implements _CheckoutFormState {
|
|
|
|
|
required this.draftName,
|
|
|
|
|
required this.orderType,
|
|
|
|
|
this.delivery,
|
|
|
|
|
this.table,
|
|
|
|
|
this.isLoading = false,
|
|
|
|
|
}) : _items = items;
|
|
|
|
|
|
|
|
|
|
@ -1273,12 +1744,14 @@ 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, isLoading: $isLoading)';
|
|
|
|
|
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)';
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
@ -1304,6 +1777,7 @@ 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));
|
|
|
|
|
}
|
|
|
|
|
@ -1321,6 +1795,7 @@ class _$CheckoutFormStateImpl implements _CheckoutFormState {
|
|
|
|
|
draftName,
|
|
|
|
|
orderType,
|
|
|
|
|
delivery,
|
|
|
|
|
table,
|
|
|
|
|
isLoading,
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
@ -1348,6 +1823,7 @@ abstract class _CheckoutFormState implements CheckoutFormState {
|
|
|
|
|
required final String draftName,
|
|
|
|
|
required final OrderType orderType,
|
|
|
|
|
final Delivery? delivery,
|
|
|
|
|
final Table? table,
|
|
|
|
|
final bool isLoading,
|
|
|
|
|
}) = _$CheckoutFormStateImpl;
|
|
|
|
|
|
|
|
|
|
@ -1372,6 +1848,8 @@ abstract class _CheckoutFormState implements CheckoutFormState {
|
|
|
|
|
@override
|
|
|
|
|
Delivery? get delivery;
|
|
|
|
|
@override
|
|
|
|
|
Table? get table;
|
|
|
|
|
@override
|
|
|
|
|
bool get isLoading;
|
|
|
|
|
|
|
|
|
|
/// Create a copy of CheckoutFormState
|
|
|
|
|
|