Question : read firebase data from flutter with builder
Answered by : dineth-s
FirebaseFirestore.instance .collection('users') .doc(userId) .get() .then((DocumentSnapshot documentSnapshot) { if (documentSnapshot.exists) { print('Document exists on the database'); Map<String, dynamic> data = documentSnapshot.data() as Map<String, dynamic>; }
});
Source : https://firebase.flutter.dev/docs/firestore/usage/ | Last Update : Tue, 04 Oct 22