importJsLibrary static method
Implementation
static Future importJsLibrary() async {
const url =
'./assets/packages/hmssdk_flutter_web/assets/hmssdk_flutter_web.js';
final script = html.ScriptElement()
..type = 'text/javascript'
..charset = 'utf-8'
..async = true
..src = url;
html.querySelector('head')!.children.add(script);
return script.onLoad.first;
}