Hi@akhtar,
The main() function came from Java-like languages so it's where all program started, without it, you can't write any program on Flutter even without UI.
The runApp() function should return widget that would be attached to the screen as a root of the widget Tree that will be rendered.
To know more about Flutter, join our Flutter APP Development Course today.