【发布时间】:2021-08-11 13:07:37
【问题描述】:
这是我编写的代码,但遇到了一些错误,例如“无法在 getOptions() 中使用字符串”
totalClasses = await FirebaseFirestore.instance
.collection('tutors')
.doc(uid)
.get("TotalClassesTook")
.then((value) {
return value.data();
});
How to retrieve the TotalClassesTook field value from this doc Error image
【问题讨论】:
-
您在代码中的哪个位置使用
getOptions? -
@NisanthReddy,现在我附上了错误图片,请检查一次。
标签: android firebase flutter dart google-cloud-firestore