update static method
Implementation
static update(Note note) async {
DateTime now = DateTime.now();
_database!.update(
'notes',
{
'title': note.title,
'desc': note.desc,
'date': "${now.year}-${now.month}-${now.day}"
},
where: '_id = ?',
whereArgs: [note.id],
);
}