我想基于文档ID而不是文档索引访问流构建器。 请帮忙。
StreamBuilder(
stream: Firestore.instance.collection('users').snapshots(),
builder: (context, snapshot){
if(!snapshot.hasData) return Text('Loading data.....');
return
Center(child: Text(snapshot.data.documents[0]["Name"]),);