Event constructor

Event({
  1. String id = "",
  2. String name = "",
  3. String description = "",
  4. String imgUrl = "",
  5. String coverImgUrl = "",
  6. String ownerId = '',
  7. String ownerName = '',
  8. String ownerEmail = '',
  9. bool public = true,
  10. int createdTime = 0,
  11. int eventDate = 0,
  12. UsageReason reason = UsageReason.any,
  13. List<String>? genres,
  14. double itemPercentageCoverage = 0.0,
  15. int distanceKm = 0,
  16. Price? paymentPrice,
  17. Price? coverPrice,
  18. EventType type = EventType.rehearsal,
  19. EventStatus status = EventStatus.draft,
  20. Place? place,
  21. Position? position,
  22. bool isFulfilled = false,
  23. List<AppMediaItem>? appMediaItems,
  24. List<InstrumentFulfillment>? instrumentsFulfillment,
  25. List<CollectiveFulfillment>? collectivesFulfillment,
  26. List<String>? watchingProfiles,
  27. List<String>? goingProfiles,
  28. bool isOnline = false,
  29. String? url,
  30. bool isOutdoor = false,
  31. bool isTest = false,
  32. int guestsLimit = 0,
  33. bool isEdited = false,
  34. String slug = '',
  35. bool isRecurring = false,
  36. List<int> recurringDays = const [],
  37. String recurringTime = '',
  38. String roomId = '',
  39. String googleCalendarId = '',
})

Implementation

Event({
  this.id = "",
  this.name = "",
  this.description = "",
  this.imgUrl = "",
  this.coverImgUrl = "",
  this.ownerId = '',
  this.ownerName = '',
  this.ownerEmail = '',
  this.public = true,
  this.createdTime = 0,
  this.eventDate = 0,
  this.reason = UsageReason.any,
  this.genres,
  this.itemPercentageCoverage = 0.0,
  this.distanceKm = 0,
  this.paymentPrice,
  this.coverPrice,
  this.type = EventType.rehearsal,
  this.status = EventStatus.draft,
  this.place,
  this.position,
  this.isFulfilled = false,
  this.appMediaItems,
  this.instrumentsFulfillment,
  this.collectivesFulfillment,
  this.watchingProfiles,
  this.goingProfiles,
  this.isOnline = false,
  this.url,
  this.isOutdoor = false,
  this.isTest = false,
  this.guestsLimit = 0,
  this.isEdited = false,
  this.slug = '',
  this.isRecurring = false,
  this.recurringDays = const [],
  this.recurringTime = '',
  this.roomId = '',
  this.googleCalendarId = '',
});