Answers for "Single document from firestore to a dart object"

0

Single document from firestore to a dart object

Stream<List<VehicleCommentSessionModel>> getSomeoneCommentsList(
   {@required String sellerId}) {
  return _fbd
     .collection('comments')
    .where('sellerId', isEqualTo: sellerId)
    .snapshots()
    .map((qSnap) => qSnap.docs
        .map((doc) => VehicleCommentSessionModel.fromJson(doc.data()))
        .toList());
}
Posted by: Guest on July-10-2021

Code answers related to "Single document from firestore to a dart object"

Code answers related to "Dart"

Browse Popular Code Answers by Language