CourseStatsRepository constructor

CourseStatsRepository(
  1. MoodleCoursesRepository _courses,
  2. MoodleTasksRepository _tasks
)

Repository responsible for providing statistics on a per-course basis.

The state is a Map of course IDs to their respective statistics.

Implementation

CourseStatsRepository(this._courses, this._tasks) : super(AsyncValue.loading()) {
  watchAsync(_courses);
  watchAsync(_tasks);
}