loadEntrypoint

({

serviceWorker

serviceWorkerVersion

serviceWorkerVersion

},

onEntrypointLoaded

async

function

engineInitializer

// Initialize the Flutter engine

let

appRunner

await

engineInitializer

initializeEngine

();

// Run the app

await

appRunner

runApp

();

});

});

</script>

</body>

</html>

Note:
  In Flutter 2.10 or earlier,
  this script doesn’t support customization.
  To upgrade your index.html file to the latest version,
  see Upgrading an older project.