CourseGrade class Null safety

Constructors

CourseGrade({required Course course, List<double> partials = const [], double finalExam = 0, double semestralGrade = 0})
const
CourseGrade.fromJson(dynamic json)
Creates a CourseGrade instance from a json object.
factory

Properties

course Course
final
finalExam → double
final
finalWeight → double
Percentage of the semester grade worth the final exam.
read-only
hashCode → int
The hash code for this object.
read-only, inherited
isApproved → bool
Evaluates if course is approved. It is considerated approved if semestralGrade is more than 50.
read-only
midtermsWeight → double
Percentage of the semester grade worth each midterm.
read-only
partials → List<double>
final
props → List<Object?>
The list of properties that will be used to determine whether two instances are equal.
read-only
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited
semestralGrade → double
final
stringify → bool?
If set to true, the toString method will be overridden to output this instance's props.
read-only, inherited

Methods

copyWith({Course? course, List<double>? partials, double? finalExam, double? semestralGrade}) CourseGrade
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

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