【发布时间】:2022-12-02 02:11:34
【问题描述】:
I would like to recover data in my firebase database but it does not work.
void _userData() async {
DocumentReference documentReference = FirebaseFirestore.instance
.collection("Users")
.doc("axelduf2006@gmail.com");
documentReference.get().then((datasnapshot) {
data = datasnapshot.data;
return print("pseudo: ${data['pseudo']}");
});
}
my log console
I would like to know the value contained in pseudo in my database.
【问题讨论】:
-
Please don't post screenshots of your code, or other textual content (such as log console output). Instead post the actual text, and use the formatting tools of Stack Overflow to mark it up. Also see: Why not upload images of code/errors when asking a question?
-
datasnapshot.datais a method, sodata = datasnapshot.data().
标签: android flutter dart google-cloud-firestore