Untitled
unknown
plain_text
2 years ago
604 B
1
Indexable
Never
Future<void> getUserdetails() async { await FirebaseFirestore.instance .collection("users") .doc(user.uid) .collection("users") .doc("BeqmJTReTZdf16Vi9os9") .get() .then((value) { loggedUserReferences = UserReferences.fromJson(value.data()!); loggedUserReferences.userRef?.forEach((element) => FirebaseFirestore .instance .collection("users") .doc(element.id) .get() .then((value) => {usersList.add(UserModel.fromJson(value.data()!))})); setState(() {}); }); }