Item constructor

Item({
  1. required String name,
  2. required int quantity,
  3. required double price,
  4. required String category,
})

Creates a new Item object with the given name, quantity, price, and category.

Implementation

Item({
  required this.name,
  required this.quantity,
  required this.price,
  required this.category,
});