injectJavascriptFileFromUrl method

Future<void> injectJavascriptFileFromUrl({
  1. required String urlFile,
  2. Map<String, dynamic>? scriptHtmlTagAttributes,
})

Implementation

Future<void> injectJavascriptFileFromUrl(
    {required String urlFile,
    Map<String, dynamic>? scriptHtmlTagAttributes}) async {
  _callMethod("injectJavascriptFileFromUrl", [
    urlFile,
    scriptHtmlTagAttributes != null
        ? js.JsObject.jsify(scriptHtmlTagAttributes)
        : null
  ]);
}