Task constructor

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

Implementation

const factory Task({
  required String id,
  @Default(null) String? v,
  required String title,
  required String content,
  required TaskStatus status,
  required List<DateTime> statusChanges,
  @Default(null) Object? attachment,
}) = _Task;