How to refresh or reload a flutter firestore streambuilder manually?

Posted by Editorial Staff | Updated on

Want to refresh or reload a flutter firestore streambuilder manually? Having the stream as a state variable and resetting on pull on refresh will solve the problem.

In below code, I am resetting the stream on button press. Hope that helps you.


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