See and change description of checklist

This commit is contained in:
marcoabat
2023-08-07 23:25:56 +02:00
parent fda0f759a6
commit f23a103e88
3 changed files with 50 additions and 12 deletions

View File

@@ -1,10 +1,13 @@
class Checklist {
final int id;
final String ownerId;
String title;
String _title;
String description;
final DateTime createdTime;
String get title => _title == '' ? 'Unnamed $id' : _title;
Checklist(
this.id, this.ownerId, this.title, this.description, this.createdTime);
this.id, this.ownerId, String title, this.description, this.createdTime)
: _title = title;
}