addNewNote method

void addNewNote ()

Adds new note content correctly

Implementation

void addNewNote() async {
  if (contentController.text != "") {
    NotesModel newNm =
        NotesModel(content: contentController.text, date: DateTime.now());
    nm = await NotesDatabaseService.db.addNoteInDB(newNm);
    isNew = false;
    if (notificationModel != null) notificationModel.note = nm.id;
  }
}