AISmartRepliesDecorator constructor

AISmartRepliesDecorator(
  1. DataSource dataSource, {
  2. AISmartRepliesConfiguration? configuration,
})

Implementation

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