getTasks abstract method

Future<List<MoodleTask>> getTasks(
  1. String token, {
  2. int? courseId,
})

Fetches all tasks.

If courseId is provided, only tasks for that course are fetched.

Implementation

Future<List<MoodleTask>> getTasks(String token, {int? courseId});