Is it possible to call Dart method from C++?
问题 How to call Dart method from C++ code? I want to try use Dart as scripting language in my application. 回答1: You have two possibilities: First, you can embed the Dart VM into your C++ program . See this discussion (there is a GitHub example). This allows you to write you program in C++ and run Dart scripts. I don't think that this way is supported by the Dart team directly, you need to do many things yourself. Second, you can embed your C++ code into the Dart VM as a native extension. See this