See and change description of checklist
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user