Dart-JavaScript interoperability lets us run JavaScript code from our Dart programs.
The interoperability is achieved by using the js
library to create Dart stubs. These stubs describe the interface we'd like to have with the underlying JavaScript code. At runtime calling the Dart stub will invoke the JavaScript code.