void is the return type of the main function, which is the starting point of any Dart program.
void
main
The curly braces {} represent the beginning and end of a block of code.
{}
print("Hello, world!") prints the "Hello, world!" text on the console window.
print("Hello, world!")
Each code statement must end with a semicolon.
Last updated 2 years ago