deleteNote method

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

Implementation

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