feat: add alot
This commit is contained in:
+9
-15
@@ -21,12 +21,6 @@ class Product {
|
||||
|
||||
bool get isLowStock => stockQuantity <= lowStockThreshold;
|
||||
|
||||
String get formattedPrice {
|
||||
final euros = priceInCents / 100;
|
||||
|
||||
return '€${euros.toStringAsFixed(2)}';
|
||||
}
|
||||
|
||||
Product copyWith({
|
||||
String? id,
|
||||
String? name,
|
||||
@@ -64,13 +58,13 @@ class Product {
|
||||
|
||||
@override
|
||||
int get hashCode => Object.hash(
|
||||
id,
|
||||
name,
|
||||
category,
|
||||
stockQuantity,
|
||||
lowStockThreshold,
|
||||
priceInCents,
|
||||
imagePath,
|
||||
active,
|
||||
);
|
||||
id,
|
||||
name,
|
||||
category,
|
||||
stockQuantity,
|
||||
lowStockThreshold,
|
||||
priceInCents,
|
||||
imagePath,
|
||||
active,
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user