final
This commit is contained in:
@@ -6,15 +6,15 @@ import 'package:uuid/uuid.dart';
|
||||
import 'product.dart';
|
||||
|
||||
class CartLineItem {
|
||||
int id;
|
||||
double unitPrice;
|
||||
double totalPrice;
|
||||
Product product;
|
||||
String name;
|
||||
String description;
|
||||
double quantity;
|
||||
String uuid;
|
||||
String parentUuid;
|
||||
int? id;
|
||||
double? unitPrice;
|
||||
double? totalPrice;
|
||||
Product? product;
|
||||
String? name;
|
||||
String? description;
|
||||
double? quantity;
|
||||
String? uuid;
|
||||
String? parentUuid;
|
||||
|
||||
CartLineItem() {
|
||||
uuid = Uuid().v4();
|
||||
@@ -48,7 +48,7 @@ class CartLineItem {
|
||||
}
|
||||
|
||||
double getTotalPrice() {
|
||||
totalPrice = unitPrice * quantity;
|
||||
return totalPrice;
|
||||
totalPrice = unitPrice! * quantity!;
|
||||
return totalPrice!;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user