Assignment constructor

const Assignment({
  1. required String id,
  2. @Default(null) String? v,
  3. required String title,
  4. @Default('') String description,
  5. required DateTime start,
  6. required DateTime end,
  7. required List<Object> requirements,
  8. @Default(true) bool isIncludeStartTime,
  9. @Default(true) bool isIncludeEndTime,
  10. @Default(true) bool isRequirementSequenced,
  11. required AssignmentStatus statusManager,
  12. required TaskStatus statusAudience,
  13. required List<DateTime> statusChanges,
  14. @Default(null) Object? attachment,
})

Implementation

const factory Assignment({
  required String id,
  @Default(null) String? v,
  required String title,
  @Default('') String description,
  required DateTime start,
  required DateTime end,
  required List<Object> requirements,
  @Default(true) bool isIncludeStartTime,
  @Default(true) bool isIncludeEndTime,
  @Default(true) bool isRequirementSequenced,
  required AssignmentStatus statusManager,
  required TaskStatus statusAudience,
  required List<DateTime> statusChanges,
  @Default(null) Object? attachment,
}) = _Assignment;