Why do we use setState in flutter?

setState is a way to dynamically change the UI . We call it inside the State Object class of the StatefulWidget. Calling setState marks the corresponding Widget dirty .

Sizin İçin Seçtik  Why set state is used in Flutter?

Leave a Reply

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