JavaScript interoperability
The Dart web platform supports callingJavaScript using the js
package,also known as package:js.
For help using the js
package, see the following:
- Documentation for the
js
package: - Packages that use the
js
package:- firebase_web is a good example of providing a Dart-like APIto a JavaScript library.
- sass is an example of a more unusual use case: providing away for JavaScript code to call Dart code.