/*
Add a Script
Create a JS file in the web directory and add some functions to it.
It calls the function from the global Window execution context.
You can define a top level function, or define values directly on window.
Make JS available
globally via a script tag in the head of the HTML document.
*/
<script>
function alertMessage(text) {
alert(text)
}
</script>
import 'dart:js' as js;
js.context.callMethod('alertMessage', ['Flutter is calling upon JavaScript!']);