Place constructor

Place({
  1. String id = "",
  2. String name = "",
  3. String description = "",
  4. String ownerName = "",
  5. String ownerId = "",
  6. String ownerImgUrl = "",
  7. PlaceType type = PlaceType.publicSpace,
  8. Address? address,
  9. double reviewStars = 0.0,
  10. Price? price,
  11. PlaceCommodity? placeCommodity,
  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

Place({
  this.id = "",
  this.name = "",
  this.description = "",
  this.ownerName = "",
  this.ownerId = "",
  this.ownerImgUrl = "",
  this.type = PlaceType.publicSpace,
  this.address,
  this.reviewStars =  0.0,
  this.price,
  this.placeCommodity,
  this.position,
  this.isActive = true,
  this.isMain = true,
  this.galleryImgUrls = const [],
  this.bookings = const [],
  this.reviews = const []
});