JavaScript interoperability

The Dart web platform supports calling JavaScript 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 is a good example of providing a Dart-like API to a JavaScript library.
    • sass is an example of a more unusual use case: providing a way for JavaScript code to call Dart code.