StatusAggregate constructor

const StatusAggregate({
  1. required int done,
  2. required int pending,
  3. required int uploaded,
  4. required int late,
})

Status aggregate of a set of tasks.

Implementation

const factory StatusAggregate({
  /// The number of tasks with [MoodleTaskStatus.done].
  required int done,

  /// The number of tasks with [MoodleTaskStatus.pending].
  required int pending,

  /// The number of tasks with [MoodleTaskStatus.uploaded].
  required int uploaded,

  /// The number of tasks with [MoodleTaskStatus.late].
  required int late,
}) = _StatusAggregate;