CalendarPlanRepository constructor

CalendarPlanRepository(
  1. PlanDatasource _plan,
  2. DeadlinesDatasource _deadlines,
  3. AuthRepository _auth,
  4. ConnectivityService _connectivity,
  5. MoodleTasksRepository _tasks,
  6. UserRepository _user,
)

Repository for managing a user's CalendarPlan.

Implementation

CalendarPlanRepository(
  this._plan,
  this._deadlines,
  this._auth,
  this._connectivity,
  this._tasks,
  this._user,
) : super(AsyncValue.loading()) {
  watchAsync(_auth);
  watchAsync(_tasks, setError: false, setLoading: false);
}