New note: fix 'created' not being serialized

This commit is contained in:
Vishesh Handa
2019-12-09 01:36:55 +01:00
parent b0b7da5291
commit 880f290d82

View File

@ -35,6 +35,7 @@ class Note with ChangeNotifier implements Comparable<Note> {
Note.newNote(this.parent) {
_created = DateTime.now();
_data.props['created'] = toIso8601WithTimezone(created);
_filePath = p.join(parent.folderPath, getFileName(this));
}