Task constructor

Task({
  1. required String id,
  2. required String title,
  3. String content = '',
  4. required DateTime createdAt,
  5. required DateTime updatedAt,
  6. DateTime? startAt,
  7. DateTime? endAt,
  8. List<String> assignTo = const [],
})

Implementation

Task({
  required this.id,
  required this.title,
  this.content = '',
  required this.createdAt,
  required this.updatedAt,
  this.startAt,
  this.endAt,
  this.assignTo = const [],
});