Is StatefulWidget immutable?

StatefulWidget instances themselves are immutable and store their mutable state either in separate State objects that are created by the createState method, or in objects to which that State subscribes, for example Stream or ChangeNotifier objects, to which references are stored in final fields on the StatefulWidget …

Sizin İçin Seçtik  Does a new state object is created if the widget re build?

Leave a Reply

Your email address will not be published. Required fields are marked *