checkout form
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
part of '../product.dart';
|
||||
|
||||
@freezed
|
||||
class ProductQuantity with _$ProductQuantity {
|
||||
const factory ProductQuantity({
|
||||
required Product product,
|
||||
ProductVariant? variant,
|
||||
required int quantity,
|
||||
String? notes,
|
||||
}) = _ProductQuantity;
|
||||
|
||||
factory ProductQuantity.empty() =>
|
||||
ProductQuantity(product: Product.empty(), quantity: 0);
|
||||
}
|
||||
Reference in New Issue
Block a user