progress property

double get progress

Implementation

double get progress {
  int completed = challengePageData.tasks
      .where((challenge) => challenge.status == "completed")
      .length;
  return completed / challengePageData.tasks.length;
}