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>;
}
});