Create a new file named hello_world.dart with the following content:

void main() {
  print('Hello, World!');
}

In the terminal, navigate to the directory containing the file hello_world.dart and type the following:

dart hello_world.dart

Hit enter to display Hello, World! in the terminal window.