Read Firebase Data From Flutter With Builder

[Solved] Read Firebase Data From Flutter With Builder | Swift - Code Explorer | yomemimo.com
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

Answers related to read firebase data from flutter with builder

Code Explorer Popular Question For Swift