update static method

dynamic update(
  1. Note note
)

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],
  );
}