unReadCountDisplayText method
Implementation
String unReadCountDisplayText() {
String text = "";
int count = widget.conversation.unreadCount ?? 0;
if (count > 99) {
text = "99+";
} else {
text = "$count";
}
return text;
}
String unReadCountDisplayText() {
String text = "";
int count = widget.conversation.unreadCount ?? 0;
if (count > 99) {
text = "99+";
} else {
text = "$count";
}
return text;
}