Car constructor

Car({
  1. required String name,
  2. required double price,
  3. required String image,
  4. required String desc,
  5. required bool isAvailable,
  6. String rentalInfo = '',
  7. bool isFavorite = false,
})

Implementation

Car({
  required this.name,
  required this.price,
  required this.image,
  required this.desc,
  required this.isAvailable,
  this.rentalInfo = '',
  this.isFavorite = false,
}) : id = uuid.v4();