addListeners method

void addListeners()

Implementation

void addListeners() {
  EmojiKeyboard.listForUpdate((String method, dynamic value) {
    if (method == 'change') {
      widget.onTextChange!.value = value;
    }

    if (method == 'tap') {
      if (widget.onTap != null) {
        widget.onTap!();
      }
    }
  });
}