Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/flutter/9.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Flutter 访问该阵列并在flatter中获取指定的用户_Flutter_Dart - Fatal编程技术网

Flutter 访问该阵列并在flatter中获取指定的用户

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

我想检查数组中是否存在该用户。现在它只检查索引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/zcFho.png