<script> function alertMessage(text) { alert(text) } </script> import 'dart:js' as js; js.context.callMethod('alertMessage', ['Flutter is calling upon JavaScript!']);