What’s a difference between stateless and stateful widgets?

Posted by Jennifer | Updated on

Stateless widgets have their state created only once — therefore, the build method is called only once as well.

Stateful widgets have their state explicitly created, and it can be modified during the lifetime of the widget.

If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.

Related Questions & Answers