What is the difference between main () and runApp () function in Flutter?

4 Answers. In Dart, main() acts as the entry point for the program whereas runApp() attaches the given widget to the screen . According to this post, it’s possible to establish configuration variables before actually attaching the first widget.

Sizin İçin Seçtik  What is Dart interface?

Leave a Reply

Your email address will not be published. Required fields are marked *