The main file of the generated project is the entry point of the Flutter application:
void main() => runApp(MyApp());
The main function by itself is the Dart entry point of an application. What makes the Flutter application take the scene is the runApp function called by passing a widget as a parameter, which will be the root widget of the application (the application itself).