messageUnreadCount method
Implementation
int messageUnreadCount() {
return ((lastMsg.timestamp ?? 0) > (readTime ?? 0) ? 1 : 0) +
msgList.where((e) => (e.timestamp ?? 0) > (readTime ?? 0)).length;
}
int messageUnreadCount() {
return ((lastMsg.timestamp ?? 0) > (readTime ?? 0) ? 1 : 0) +
msgList.where((e) => (e.timestamp ?? 0) > (readTime ?? 0)).length;
}