Meshy is not for Flutter initially but Messi has always been one of the best for Football.
At the beginning of the Flutter framework lesson we find it difficult to set the relationship between the main function, stateless and stateful widgets.
We find it easy to write widgets inside the main function but gradually as our code base grows we realize that
Meshy is not for flutter initially but Messi has always been one of the best for football.
We can write meshy code in Flutter framework's main.dart file but debugging the code will be very difficult. In these situations, stateless and stateful widgets are used to categorize dynamic and static codes into separate classes that can reduce debugging time when needed.
This can help us visualize the code flow easily.
We need stateless and stateful classes to organize our code based on the attributes of the code.
If the code changes the state of the screen then such code will be placed in the stateful class and if the code does not change the state of the screen then the code will be placed in the stateless class.