importLibrary function
Injects the library by its url
.
Throws an UnsupportedError if the dart:html
library is not present.
This works by adding a new script tag to the html page with the src tag set to url.
Implementation
Future<void> importLibrary(String url) => throw new UnsupportedError(
'Injecting js is only possible if the platform supports dart:hmtl!');