SmartReplyExtensionDecorator constructor

SmartReplyExtensionDecorator(
  1. DataSource dataSource, {
  2. SmartReplyConfiguration? configuration,
})

Implementation

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