inject_js library
Can be used to inject javascript libraries or code into the current page.
All functions in this library throw UnsupportedErrors if the dart:html
library is not present.
Functions
-
importLibrary(
String url) → Future< void> -
Injects the library by its
url
. Throws an UnsupportedError if thedart:html
library is not present. -
injectScript(
String src) → Future< void> -
Injects the javascript code
src
into the page. Throws an UnsupportedError if thedart:html
library is not present. -
isImported(
String url) → bool -
Checks if a library is present in the page.
Throws an UnsupportedError if the
dart:html
library is not present.