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
1 changed files with 2 additions and 0 deletions

View File

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