onMessageCountUpdate property

Stream get onMessageCountUpdate

Stream which triggers a callback for every unread message

Implementation

static Stream get onMessageCountUpdate {
  messageCountUpdatesStreamController.onCancel = () {
    _registerForEvent(FRESHCHAT_UNREAD_MESSAGE_COUNT_CHANGED, false);
  };
  messageCountUpdatesStreamController.onListen = () {
    _registerForEvent(FRESHCHAT_UNREAD_MESSAGE_COUNT_CHANGED, true);
  };
  return messageCountUpdatesStreamController.stream;
}