Facility constructor

Facility({
  1. String id = "",
  2. String name = "",
  3. String description = "",
  4. String ownerName = "",
  5. String ownerId = "",
  6. String ownerImgUrl = "",
  7. FacilityType type = FacilityType.publisher,
  8. Address? address,
  9. double reviewStars = 0.0,
  10. Price? price,
  11. FacilityCommodity? facilityCommodity,
  12. Position? position,
  13. bool isActive = true,
  14. bool isMain = true,
  15. List<String> galleryImgUrls = const [],
  16. List<String> bookings = const [],
  17. List<String> reviews = const [],
})

Implementation

Facility({
  this.id = "",
  this.name = "",
  this.description = "",
  this.ownerName = "",
  this.ownerId = "",
  this.ownerImgUrl = "",
  this.type = FacilityType.publisher,
  this.address,
  this.reviewStars =  0.0,
  this.price,
  this.facilityCommodity,
  this.position,
  this.isActive = true,
  this.isMain = true,
  this.galleryImgUrls = const [],
  this.bookings = const [],
  this.reviews = const []
});