How to Run a Dart Script
I have been working with Dart for a while now because it is the native language of Flutter. I was wondering how I could use it for scripting and it is actually really simple!
All you have to do is:
- Create a
- Write a
mainfunction which allows execution of the
.dartfile as a program or script.
- Write your desired code within the
Let me know if it didn't work for you. Have fun!