unReadCountDisplayText method

String unReadCountDisplayText()

Implementation

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