handleTap method

void handleTap(
  1. bool isUnread
)

Implementation

void handleTap(bool isUnread) {
  if (isUnread) {
    widget.fynoInApp.markAsRead(widget.message).then((_) {
      if (mounted) {
        setState(() {});
      }
      widget.onClick();
    });
  }
}