Product constructor

Product({
  1. required String name,
  2. required num price,
  3. required String description,
  4. required String image,
})

Returns a new Product instance.

Implementation

Product({
  required this.name,
  required this.price,
  required this.description,
  required this.image,
});