totalUnreadCount property

Stream<int> get totalUnreadCount

Stream of total unread count across all conversations.

Implementation

Stream<int> get totalUnreadCount {
  _ensureInitialized();
  return watchConversations().map(
    (conversations) => conversations.fold<int>(
        0, (sum, conversation) => sum + conversation.unreadCount),
  );
}