Course class: add toString() method

This commit is contained in:
Marcel Kapfer (mmk2410) 2016-06-18 23:40:50 +02:00
parent 85fa10cde8
commit feb662d820

View file

@ -28,4 +28,6 @@ class Course {
int id;
Course();
String toString() => title.isEmpty ? 'notitle' : title;
}