updateNote method

Future<int?> updateNote(
  1. Note note
)

Implementation

Future<int?> updateNote(Note note) async {
  final db = await database;
  return await db?.update(
    'notes',
    note.toMap(),
    where: 'id = ?',
    whereArgs: [note.id],
  );
}