find method

Future<T?> find(
  1. String docId
)

To get document data by document id call find and pass docId User user = await FirestoreModel.use

Implementation

Future<T?> find(String docId) async {
  return await _collectionReference.doc(docId).get().then((doc) {
    return _toModel(doc);
  });
}