Reputation: 31
I've found several posts about this and it sounds like the answer is that it's possible by embedding the Dart VM (based on this 2013 post and this 2019 post).
Note that this is different from Dart code calling C using dart:ffi which then has a callback into Dart, which I see is supported. I'm looking for a way for a C++ program to call Dart code.
Upvotes: 2
Views: 690
Reputation: 895
Currently, As suggested on the dart website, You could use the Dart Embedding API to build the Dart VM into a dynamic library with project such as dart_shared_library
Upvotes: 0