7

I want to list a sort of data from firestore. each document contains a "Status" field. I need to pull out 3 different types of status from the list. how do I do that in dart for my flutter project?

the following code, it doesn't work for me.

getStream() {
  var snapshots = firestore.collection("booking")
  .where("userId", isEqualTo: uid)
  .where("status", isEqualTo: "confirmed")
  .where("status", isEqualTo: "unconfirmed")
  .where("status", isEqualTo: "unconfirmed quotation")
  .snapshots();
  return snapshots;
}
Frank van Puffelen
  • 565,676
  • 79
  • 828
  • 807
Jithin Joy
  • 176
  • 2
  • 13

0 Answers0