CropTask constructor

CropTask({
  1. String? id,
  2. required String cropName,
  3. required String taskDescription,
  4. required DateTime date,
  5. bool isCompleted = false,
  6. String? imagePath,
  7. String? priority,
  8. String? notes,
})

Implementation

CropTask({
  String? id,
  required this.cropName,
  required this.taskDescription,
  required this.date,
  this.isCompleted = false,
  this.imagePath,
  this.priority,
  this.notes,
}) : id = id ?? const Uuid().v4();