handleDelete method

void handleDelete ()

Deletes note content correctly

Implementation

void handleDelete() async {
  if (nm.id != null) NotesDatabaseService.db.deleteNoteInDB(nm);
  Navigator.pop(context, true);
}