How to check if Stateless widget is disposed in flutter?

Posted by Jennifer | Updated on

Want to check if Stateless widget is disposed in flutter? If you change your widget to a StatefulWidget then you can have a function like the following:

Then in the dispose method just dispose of the player:


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