123456789101112131415161718 |
- import 'toping_model.dart';
- import 'producto_model.dart';
- class ItemCarrito {
- Producto producto;
- int cantidad;
- Map<int, Set<int>> selectedToppings;
- Map<int, List<Producto>> selectableToppings;
- ItemCarrito({
- required this.producto,
- this.cantidad = 1,
- Map<int, Set<int>>? selectedToppings,
- Map<int, List<Producto>>? selectableToppings,
- }) : selectedToppings = selectedToppings ?? {},
- selectableToppings = selectableToppings ?? {};
- }
|