如何在监听任何更改的同时有效地更新 firestore

How to efficiently update the firestore while listening to any changes

我想在每次遇到值更改时更新 firestore 数据库。我已经在 post

中讨论过了

Cannot read data after updating it in firestore from flutter app

但我的方法可能是错误的。我怎样才能达到我的objective? 请帮忙。

阅读 Stream Builder 的文档。 它将在这方面对您有所帮助...