ProductModel constructor

const ProductModel({
  1. int id = 0,
  2. required String name,
  3. bool status = true,
  4. required int catagoryId,
  5. required int typeId,
  6. int? measureUnitId,
  7. String? description,
  8. List<String>? images,
  9. String? secondName,
  10. bool hasExpireDate = false,
  11. int? ageDays,
})

Implementation

const ProductModel({
  super.id = 0,
  required super.name,
  super.status = true,
  required this.catagoryId,
  required this.typeId,
  this.measureUnitId,
  this.description,
  this.images,
  this.secondName,
  this.hasExpireDate = false,
  this.ageDays,
}) : userId = 0;