useEmojis method

dynamic useEmojis(
  1. BuildContext context,
  2. CometChatTheme theme
)

Implementation

useEmojis(BuildContext context, CometChatTheme theme) async {
  String? emoji = await showCometChatEmojiKeyboard(context: context);
  if (emoji != null) {
    if (!focusNode.hasFocus) {
      focusNode.requestFocus();
      CometChatUIEvents.hidePanel(
          composerId, CustomUIPosition.composerBottom);
    }
    _addEmojiToText(emoji);
  }
}