Flutter | Firebase | Getting document data
Dec 13, 2021
For info on firebase implement to flutter project visit this page:
Let us begin,
Suppose you have a collection in firebase named mydata.
and we have an instance created for that collection.
Now we want to get a specific document instead of iterating through the whole collection.
We use the code below to get a document named DocumentID123 inside the collection
Now inside the document, we have a value like
So to get the values we can access them as shown below
Hope this blog has helped you with enough information on how to access a specific document ID inside a collection.
For more blogs visit https://mwaseemaw.medium.com/