1.

Write the difference between runApp() and main() in flutter.

Answer»

main(): This function starts the program. Flutter does not allow us to WRITE any program WITHOUT the main() function.  

runApp(): Using runApp(), you are ABLE to return the widgets that are connected to the screen as a root of the widget tree that will be RENDERED on the screen. This function is called in the main function, which is the DRIVER of the app.



Discussion

No Comment Found