StatusAggregate class

Aggregate of a set of tasks by MoodleTask.status.

Annotations

Constructors

StatusAggregate({required int done, required int pending, required int uploaded, required int late})
Status aggregate of a set of tasks.
const
factory
StatusAggregate.fromJson(Map<String, Object?> json)
Creates a StatusAggregate from a JSON object.
factory
StatusAggregate.fromTasks(Iterable<MoodleTask> tasks)
Creates a StatusAggregate from a set of tasks.
factory

Properties

copyWith → $StatusAggregateCopyWith<StatusAggregate>
Create a copy of StatusAggregate with the given fields replaced by the non-null parameter values.
no setterinherited
done → int
The number of tasks with MoodleTaskStatus.done.
no setterinherited
donePercentage → double
The percentage of done tasks.
no setter
hashCode → int
The hash code for this object.
no setterinherited
late → int
The number of tasks with MoodleTaskStatus.late.
no setterinherited
latePercentage → double
The percentage of late tasks.
no setter
pending → int
The number of tasks with MoodleTaskStatus.pending.
no setterinherited
pendingPercentage → double
The percentage of pending tasks.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
total → int
The total number of aggregated tasks.
no setter
uploaded → int
The number of tasks with MoodleTaskStatus.uploaded.
no setterinherited
uploadedPercentage → double
The percentage of uploaded tasks.
no setter

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
Serializes this StatusAggregate to a JSON map.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited