AISmartRepliesDecorator constructor
AISmartRepliesDecorator(
- DataSource dataSource, {
- 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();
}