getDocumentById method

Future<DocumentSnapshot<Object?>> getDocumentById(
  1. String id
)

Implementation

Future<DocumentSnapshot> getDocumentById(String id) {
  return ref.doc(id).get();
}