Flutter 访问该阵列并在flatter中获取指定的用户
我想检查数组中是否存在该用户。现在它只检查索引0。 我已附上firestore的图片Flutter 访问该阵列并在flatter中获取指定的用户,flutter,dart,Flutter,Dart,我想检查数组中是否存在该用户。现在它只检查索引0。 我已附上firestore的图片 stream: Firestore.instance .collection('devices') .where('owner', isEqualTo: [user.uid]).snapshots(), [![enter image description here][1]][1]``` [1]: https://i.stack.imgur.com/z
stream: Firestore.instance
.collection('devices')
.where('owner', isEqualTo: [user.uid]).snapshots(),
[![enter image description here][1]][1]```
[1]: https://i.stack.imgur.com/zcFho.png