How do I turn off setState flutter?

The preferred solution is to cancel the timer or stop listening to the animation in the dispose() callback . Another solution is to check the “mounted” property of this object before calling setState() to ensure the object is still in the tree.10 Oca 2022

Sizin İçin Seçtik  What is difference between useState and setState in React?

Leave a Reply

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