What is the difference between runApp() and main()?
main()is the entry point of the Dart program.-
runApp()inflates the given widget and attaches it to the screen.
Example:
main() is the entry point of the Dart program.
runApp() inflates the given widget and attaches it to the screen.
Example:
void main() { runApp(MyApp()); }
Comments
Post a Comment