'How do you update locally cached data in Firebase Firestore?

I'm using the cloud_firestore Dart package for my Flutter application. From my understanding, there is no expiration time on data cached from Firestore queries. So if for example, user A updates their public profile and user B already has user A's profile cached locally, does user B ever see the new profile data?

This question came up because I made changes to the database directly through the firebase console, and I can't get the new data to show in my application (I assume I need to clear the local cache).



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source