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<InstrumentFulfillment>? instrumentsFulfillment,
  24. List<BandFulfillment>? bandsFulfillment,
  25. bool isOnline = false,
  26. bool isTest = false,
  27. int participantsLimit = 0,
})

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.instrumentsFulfillment,
    this.bandsFulfillment,
    this.isOnline = false,
    this.isTest = false,
    this.participantsLimit = 0
});