Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
class FireStoreDataBase {
final CollectionReference collectionRef =
Future getData() async {
try {
//to get data from a single/particular document alone.
var temp = await collectionRef.doc("<your document ID here>").get();
return temp;
} catch (e) {
debugPrint("Error - $e");
return null;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment