first commit
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
part of 'checkout_bloc.dart';
|
||||
|
||||
@freezed
|
||||
class CheckoutState with _$CheckoutState {
|
||||
const factory CheckoutState.initial() = _Initial;
|
||||
const factory CheckoutState.loading() = _Loading;
|
||||
const factory CheckoutState.loaded(
|
||||
List<ProductQuantity> items,
|
||||
Discount? discountModel,
|
||||
int discount,
|
||||
int discountAmount,
|
||||
int tax,
|
||||
int serviceCharge,
|
||||
int totalQuantity,
|
||||
int totalPrice,
|
||||
String draftName,
|
||||
OrderType orderType) = _Loaded;
|
||||
const factory CheckoutState.error(String message) = _Error;
|
||||
|
||||
//save draft order
|
||||
const factory CheckoutState.savedDraftOrder(int orderId) = _SavedDraftOrder;
|
||||
}
|
||||
Reference in New Issue
Block a user