watchUnreadCount abstract method

Stream<int> watchUnreadCount({
  1. required String chatId,
  2. required String userId,
})

Stream of unread message count.

  • chatId: ID of the chat
  • userId: ID of the user

Returns a stream that emits the number of unread messages.

Implementation

Stream<int> watchUnreadCount({
  required String chatId,
  required String userId,
});