Facility constructor
Facility({
- String id = "",
- String name = "",
- String description = "",
- String ownerName = "",
- String ownerId = "",
- String ownerImgUrl = "",
- FacilityType type = FacilityType.publisher,
- Address? address,
- double reviewStars = 0.0,
- Price? price,
- FacilityCommodity? facilityCommodity,
- Position? position,
- bool isActive = true,
- bool isMain = true,
- List<
String> galleryImgUrls = const [], - List<
String> bookings = const [], - 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 []
});