Event constructor

const Event({
  1. required String id,
  2. @Default(null) String? v,
  3. required String name,
  4. @Default('') String description,
  5. required DateTime start,
  6. required DateTime end,
  7. required EventStatus status,
  8. required List<DateTime> statusChanges,
  9. @Default(null) Object? attachment,
})

Implementation

const factory Event({
  required String id,
  @Default(null) String? v,
  required String name,
  @Default('') String description,
  required DateTime start,
  required DateTime end,
  required EventStatus status,
  required List<DateTime> statusChanges,
  @Default(null) Object? attachment,
}) = _Event;