getDocument method

Future<DocumentSnapshot<Object?>> getDocument(
  1. String collectionPath,
  2. String docId
)

Implementation

Future<DocumentSnapshot> getDocument(String collectionPath, String docId) async {
  return await _db.collection(collectionPath).doc(docId).get();
}