update method
- BuildContext context
Implementation
void update(BuildContext context) {
note.title=note.title??'';
note.description=note.description??'';
Api.updateData(note).then((value) {
}).catchError((error) {
Utils.showToast(Utils.getErrorMessage(error));
});
}