Set default portal port to 8081, fix Dart build issue in cart screen, and update setup documentation. Co-Authored-By: Oz <oz-agent@warp.dev>
11 lines
194 B
Dart
11 lines
194 B
Dart
import 'product.dart';
|
|
|
|
class CartItem {
|
|
final Product product;
|
|
int quantity;
|
|
|
|
CartItem({required this.product, this.quantity = 1});
|
|
|
|
double get lineTotal => product.price * quantity;
|
|
}
|