Task constructor

Task({
  1. required String id,
  2. required String title,
  3. required String description,
  4. required bool done,
  5. required DateTime createdAt,
})

Creates a task with the given fields.

Implementation

Task({
  required this.id,
  required this.title,
  required this.description,
  required this.done,
  required this.createdAt,
});