Course class: add toString() method
This commit is contained in:
parent
85fa10cde8
commit
feb662d820
1 changed files with 2 additions and 0 deletions
|
@ -28,4 +28,6 @@ class Course {
|
||||||
int id;
|
int id;
|
||||||
|
|
||||||
Course();
|
Course();
|
||||||
|
|
||||||
|
String toString() => title.isEmpty ? 'notitle' : title;
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue