AIConversationSummaryDecorator constructor

AIConversationSummaryDecorator(
  1. DataSource dataSource, {
  2. AIConversationSummaryConfiguration? configuration,
})

Implementation

AIConversationSummaryDecorator(super.dataSource, {this.configuration}) {
  dateStamp = DateTime.now().microsecondsSinceEpoch.toString();
  _listenerId = "AiConversationStarter$dateStamp";
  CometChatUIEvents.removeUiListener(_listenerId);
  CometChatUIEvents.addUiListener(_listenerId, this);
  CometChatMessageEvents.removeMessagesListener(_listenerId);
  CometChatMessageEvents.addMessagesListener(_listenerId, this);
  getLoggedInUser();
}