handleSave method

void handleSave ()

Saves note content correctly

Implementation

void handleSave() async {
  if (isNew) {
    if (contentController.text != "") {
      addNewNote();
    }
  } else {
    updateNote();
  }
  mode = NOTESCREEN_MODE_VIEW;
  setState(() {});
}