TaskAggregate.fromTasks constructor
- Iterable<
MoodleTask> tasks
Creates a TaskAggregate from a set of tasks.
Implementation
factory TaskAggregate.fromTasks(Iterable<MoodleTask> tasks) {
final status = StatusAggregate.fromTasks(tasks);
final type = TypeAggregate.fromTasks(tasks);
return TaskAggregate(status: status, type: type);
}