There is an easy way to create and run a Dart console application:
-
Open VSCode
-
Press cmd + shift + p on Mac or ctrl + shift + p on windows.
-
Choose Dart: New project
4.Then you should select Console Application
5.After locating console application everything is ready for you 😊
Well, how to run it? So easy!!!🙂
Just go to terminal and type: “dart main.dart”
or copy the main.dart path then type: “dart (paste main file path)”
or press ctrl + F5
That’s it. I hope you enjoy. 😁