Product constructor

Product({
  1. required int id,
  2. required String title,
  3. required double price,
})

Creates a new Product.

Implementation

Product({
  required this.id,
  required this.title,
  required this.price,
});