completedForPhase method
Implementation
int completedForPhase(int index) {
final start = startOfPhase(index);
int completedCount = 0;
for (int i = 0; i < study.schedule.phaseDuration; i++) {
if (allTasksCompletedFor(start.add(Duration(days: i)))) {
completedCount++;
}
}
return completedCount;
}