data method

Stream<List<DocumentSnapshot<Object?>>> data(
  1. String id
)

return the Document mapped to the id

Implementation

Stream<List<DocumentSnapshot>> data(String id) {
  return _stream.map((QuerySnapshot querySnapshot) {
    querySnapshot.docs.where((DocumentSnapshot documentSnapshot) {
      return documentSnapshot.id == id;
    });
    return querySnapshot.docs;
  });
}