feat: change total to amount
This commit is contained in:
@@ -159,3 +159,12 @@ class PaymentOrderItem with _$PaymentOrderItem {
|
||||
updatedAt: '',
|
||||
);
|
||||
}
|
||||
|
||||
/// Ringkasan order untuk kartu summary: jumlah order + total nominalnya.
|
||||
@freezed
|
||||
class OrderTotal with _$OrderTotal {
|
||||
const factory OrderTotal({required int count, required int amount}) =
|
||||
_OrderTotal;
|
||||
|
||||
factory OrderTotal.empty() => const OrderTotal(count: 0, amount: 0);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user