mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-07-15 07:56:11 +08:00
Give each Note a unique id
Otherwise we're overwriting that one note.
This commit is contained in:
@ -3,11 +3,11 @@ typedef NoteRemover(Note note);
|
||||
typedef NoteUpdator(Note note);
|
||||
|
||||
class Note implements Comparable {
|
||||
final String id;
|
||||
String id;
|
||||
final DateTime createdAt;
|
||||
final String body;
|
||||
|
||||
const Note({this.createdAt, this.body, this.id});
|
||||
Note({this.createdAt, this.body, this.id});
|
||||
|
||||
factory Note.fromJson(Map<String, dynamic> json) {
|
||||
return new Note(
|
||||
|
Reference in New Issue
Block a user