copyTextMessages method

dynamic copyTextMessages()

Implementation

copyTextMessages() {
  // PlatformRepo.copyTextMessages(selectedChatList[0].messageId);
  debugPrint('Copy text ==> ${selectedChatList[0].messageTextContent}');
  Clipboard.setData(
      ClipboardData(text: selectedChatList[0].messageTextContent.toString()));
  // selectedChatList.clear();
  // isSelected(false);
  clearChatSelection(selectedChatList[0]);
  toToast(AppConstants.textCopied);
}