getTasksForDate method

List<CropTask> getTasksForDate(
  1. DateTime date
)

Implementation

List<CropTask> getTasksForDate(DateTime date) {
  return taskBox.values.where((task) =>
    task.date.year == date.year &&
    task.date.month == date.month &&
    task.date.day == date.day
  ).toList();
}