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 {
  jsWebView?.injectJavascriptFileFromUrl(
      urlFile.toJS, scriptHtmlTagAttributes?.jsify());
}