MoodleTasksRepository constructor

MoodleTasksRepository(
  1. MoodleTaskDatasource _tasks,
  2. AuthRepository _auth,
  3. MoodleCoursesRepository _courses
)

Provides all tasks from Moodle with the latest updates.

Implementation

MoodleTasksRepository(this._tasks, this._auth, this._courses) : super(AsyncValue.loading()) {
  watchAsync(_auth);
  watchAsync(_courses, setError: false, setLoading: false);
}