Announcement constructor

const Announcement({
  1. required String id,
  2. @Default(null) String? v,
  3. required String title,
  4. required String content,
  5. required DateTime start,
  6. required DateTime end,
  7. required AnnouncementStatus status,
  8. required List<DateTime> statusChanges,
  9. @Default(null) Object? attachment,
})

Implementation

const factory Announcement({
  required String id,
  @Default(null) String? v,
  required String title,
  required String content,
  required DateTime start,
  required DateTime end,
  required AnnouncementStatus status,
  required List<DateTime> statusChanges,
  @Default(null) Object? attachment,
}) = _Announcement;