Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
How do I execute Dynamically (like Eval) in Dart? #36989
Dart does not allow you to create code at run-time.
What problem are you trying to solve?
There are workarounds when you are running on the VM and has access to isolates. You can create a new library with a
In general, I'd recommend trying something else. It is often possible to get the effect of generating code by just combining first-class function values, but that obviously depends on the problem at hand.