Using Dart classes from JavaScript

為{幸葍}努か 提交于 2019-12-01 10:41:25
Günter Zöchbauer

Due to tree-shaking and minification this is normally not possible. If you have a Dart application (with a main() then you can make a Dart function available to be called from JavaScript (see How to call a Dart function from Javascript? for an example).

As far as I know there are plans to support your requirement but I have no idea about progress or when such a feature might be available.

This is the related project https://github.com/dart-lang/js-interop

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!