如何在cloud firestore中访问文档中的对象?
我在我的Flatter应用程序中使用cloud firestore 我有一个文档,其中有一个对象,该对象又有几个键值对 大概是这样的:如何在cloud firestore中访问文档中的对象?,cloud,flutter,google-cloud-firestore,Cloud,Flutter,Google Cloud Firestore,我在我的Flatter应用程序中使用cloud firestore 我有一个文档,其中有一个对象,该对象又有几个键值对 大概是这样的: child "jamesjr", message Time August 19, 2018 at 12:00:00 AM UTC+5:30 msgbody "Hello, This is the first private message model" pic1 "https://www.bing.com/th?id=OIP.HXmR02Xik3jiwFr8aN
child "jamesjr",
message
Time August 19, 2018 at 12:00:00 AM UTC+5:30
msgbody "Hello, This is the first private message model"
pic1 "https://www.bing.com/th?id=OIP.HXmR02Xik3jiwFr8aN6NyQHaD4&w=269&h=149&c=7&o=5&pid=1.7"
pic2 "https://www.bing.com/th?id=OIP.Y11MMH-KHgXj0GyJJKC3lgHaFJ&w=255&h=177&c=7&o=5&pid=1.7",
reciever "wjames",
sender "steaher" ,
现在,我了解到我可以使用
Text('${ds['child']}')
但是,如何读取文档中对象“消息”
”下的“msgbody
”
先谢谢你