data method

Stream<List<DocumentSnapshot<Map<String, dynamic>>>> data(
  1. String id
)
inherited

return the Document mapped to the id

Implementation

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