addNote method
- 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));
});
}