Follow the below instructions:
STEP 1: Open a directory and type cmd as shown below
STEP 2: Command Prompt will be opened. In the Command Prompt type dart create project_name. For example, dart create test_project
STEP 3: Project is successfully created after that open the test_project directory and then the bin directory
STEP 4: In the bin directory delete the already created dart file because we will create our own file and will write a simple Hello World program.
STEP 5: Create a New Text Document.
STEP 6: Write a Hello World program as shown below
STEP 7: Click on the File and then on Save As
STEP 8: Write the name of the file (remember to write .dart which is the extension for dart file) and select type as All Files and then click on the Save button as given below
STEP 9: Open the Command Prompt again and type dart file_name.dart such as dart test.dart to run the program.