addNote method

void addNote (
  1. BuildContext context
)

Implementation

void addNote(BuildContext context) {
  note.title=note.title??'';
  note.description=note.description??'';

  Api.addNote(note).then((value) {
  }).catchError((error) {
    Utils.showToast(Utils.getErrorMessage(error));
  });
}