Stream<List<QuerySnapshot>> getData() {
Stream stream1 = FirebaseFirestore.instance.collection('Gib Role').where('id', isEqualTo: 'false').orderBy('timestamp').snapshots();
Stream stream2 = FirebaseFirestore.instance.collection('Register').where('id', isEqualTo: 'true').orderBy('timestamp').snapshots();
return StreamZip([stream1,stream2]); }
以上错误在流1和流2上可见,如何清除此错误,请任何人帮助我
1条答案
按热度按时间trnvg8h31#
试试这个: