In flutter we can pass a stateless widget that returns a MaterialApp instance to the runApp() function like this:
MaterialApp
runApp()
void main()=>r
In one case you have a class, which you can add more methods to, and use them. In one case you don't.