focusShareCode method

void focusShareCode()

Implementation

void focusShareCode() async {
  if (!isKeyboardVisible) {
    showLoader.value = true;
    await _webController?.clearFocus();
    await addDelay(seconds: 1);
    await _webController?.evaluateJavascript(
        source:
            "document.getElementsByClassName('sc-AzgDb fweFII')[0].focus();");
    await _webController?.requestFocusNodeHref();
    showLoader.value = false;
  }
}