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