Report constructor

const Report({
  1. required int id,
  2. required ModerationReasonType reasonType,
  3. @reportSubjectConverter required ReportSubject subject,
  4. required String reportedBy,
  5. required DateTime createdAt,
})

Implementation

const factory Report({
  required int id,
  required ModerationReasonType reasonType,
  @reportSubjectConverter required ReportSubject subject,
  required String reportedBy,
  required DateTime createdAt,
}) = _Report;