allTasksCompletedFor method

bool allTasksCompletedFor(
  1. DateTime dateTime
)

Check if all tasks are fully completed on a given day returns true if all of of the tasks (interventions & observations) have been completed on a given day

Implementation

bool allTasksCompletedFor(DateTime dateTime) => scheduleFor(dateTime).every(
      (taskInstance) => completedTaskForDay(taskInstance.task.id, dateTime),
    );