A lot of web applications are written in JavaScript nowadays and in this chapter, we will focus on how to communicate with them using Dart. We will also cover the following topics:
dart:js
libraryJsObject
and instantiationJsFunction
and the this
keywordWeb applications written in Dart can be executed only in a Dart VM that is embedded in a browser called Dartium, a special build of Chromium. To be executed in other web browsers, the Dart code must be compiled to JavaScript—the language supported by all web browsers. Latest tendencies indicate that JavaScript will exist as the language for web development for a long time to come, as it is popular among people and has a lot of tools and frameworks. This means that Dart must have the ability to communicate with the JavaScript code in any web browser.
3.147.59.198