handleAction method
Implementation
void handleAction(String action) {
switch (action) {
case 'markAllAsRead':
widget.fynoInApp.markAllAsRead().then((_) {
if (mounted) {
setState(() {});
}
});
break;
case 'deleteAll':
widget.fynoInApp.deleteAllMessages().then((_) {
if (mounted) {
setState(() {});
}
});
break;
}
}