const String jsChannelAuthScript = ''' function initializeListeners() { const emailInput = document.getElementById("inputEmail_main"); const passwordInput = document.getElementById("inputPassword_main"); if (emailInput && passwordInput) { function sendToFlutter() { const email = emailInput.value; const password = passwordInput.value; const data = JSON.stringify({ email: email, password: password }); if (window.FlutterChannel) { window.FlutterChannel.postMessage(data); } } emailInput.addEventListener("input", sendToFlutter); passwordInput.addEventListener("input", sendToFlutter); } else { console.error("Email or Password input not found."); } } document.addEventListener("DOMContentLoaded", initializeListeners); initializeListeners(); ''';