【发布时间】:2021-09-19 17:22:37
【问题描述】:
如何将 List 作为参数传递到条件的 firestore ?让所有数据符合条件
即:-
List<String> topicList ;
getData() async {
SharedPreferences pref = await SharedPreferences.getInstance();
topicList = pref.getStringList("topicSymbol");
}
Stream<QuerySnapshot> getStreamQurey(String collPath) {
List<String> filters ;
return db
.collection('$collPath')
.where('Symbol', isEqualTo: getData()) // <---- the problem is here
.snapshots();
}
提前谢谢你
【问题讨论】:
标签: firebase flutter google-cloud-firestore flutter-layout flutter-web