TaskAggregate.fromTasks constructor

TaskAggregate.fromTasks(
  1. 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);
}