handleAction method

void handleAction(
  1. String action
)

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;
  }
}