StatefulWidget is more of a beginner way to show how to pass state in a flutter application. For production level applications, there is the BLOC pattern which is another way of managing state inside a flutter application. There are other ways, but the BLOC pattern is highly recommended by the Flutter team.23 Haz 2019