Skip to content
Justice Tech School

The main Function

Every Dart program starts in main(). It can take a list of arguments.

Example
void main(List<String> args) {
  print("Hello, Dart");
  print("args: ${args.length}");
}

Exercise

Entry function.

void () {}

Quiz Test

Where does a Dart program start?

These free lessons are for learning. Join a full course for projects, mentor feedback and a verified certificate.