FireStore: Need a funtion which can get all List<data> of a firestore collection from cache without make server request even divice is online #10601
Replies: 1 comment
-
final snapshot = await documentReference.get(GetOptions(source: Source.serverAndCache)); this solve my issue . thanks |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
now we can get all data from a firestore collection . when app is online data came from server but when app is offline data came from cache . I nead a funtion collectionFromCache which all time get all firestore collection data from cache even app is offline
Beta Was this translation helpful? Give feedback.
All reactions