TypeAggregate class
Aggregate of a set of tasks by MoodleTask.type
.
- Annotations
Constructors
- TypeAggregate({required int required, required int optional, required int compensation, required int exam, required int none})
-
Aggregate of a set of tasks by
MoodleTask.type
.constfactory -
TypeAggregate.fromJson(Map<
String, Object?> json) -
Creates a TypeAggregate from a JSON object.
factory
-
TypeAggregate.fromTasks(Iterable<
MoodleTask> tasks) -
Creates a TypeAggregate from a set of tasks.
factory
Properties
- compensation → int
-
The number of tasks with
MoodleTaskType.compensation
.no setterinherited - compensationPercentage → double
-
The percentage of
compensation
tasks.no setter -
copyWith
→ $TypeAggregateCopyWith<
TypeAggregate> -
Create a copy of TypeAggregate
with the given fields replaced by the non-null parameter values.
no setterinherited
- exam → int
-
The number of tasks with MoodleTaskType.exam.
no setterinherited
- examPercentage → double
-
The percentage of
exam
tasks.no setter - hashCode → int
-
The hash code for this object.
no setterinherited
- none → int
-
The number of tasks with MoodleTaskType.none.
no setterinherited
- nonePercentage → double
-
The percentage of
none
tasks.no setter - optional → int
-
The number of tasks with MoodleTaskType.optional.
no setterinherited
- optionalPercentage → double
-
The percentage of
optional
tasks.no setter - required → int
-
The number of tasks with MoodleTaskType.required.
no setterinherited
- requiredPercentage → double
-
The percentage of required 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
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
Serializes this TypeAggregate to a JSON map.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited