toString method
override
A string representation of this object.
Some classes have a default textual representation,
often paired with a static parse function (like int.parse).
These classes will provide the textual representation as
their string representation.
Other classes have no meaningful textual representation
that a program will care about.
Such classes will typically override toString to provide
useful information when inspecting the object,
mainly for debugging or logging.
Implementation
@override
String toString() {
return (StringBuffer('CourseOffering(')
..write('id: $id, ')
..write('fetchedAt: $fetchedAt, ')
..write('course: $course, ')
..write('semester: $semester, ')
..write('number: $number, ')
..write('phase: $phase, ')
..write('courseType: $courseType, ')
..write('status: $status, ')
..write('language: $language, ')
..write('remarks: $remarks, ')
..write('syllabusId: $syllabusId, ')
..write('syllabusUpdatedAt: $syllabusUpdatedAt, ')
..write('enrolled: $enrolled, ')
..write('withdrawn: $withdrawn, ')
..write('objective: $objective, ')
..write('weeklyPlan: $weeklyPlan, ')
..write('evaluation: $evaluation, ')
..write('textbooks: $textbooks, ')
..write('syllabusRemarks: $syllabusRemarks')
..write(')'))
.toString();
}