exists method

Future<bool> exists(
  1. String docId
)

check if document is exists call exists by docId bool isExists = await FirestoreModel.use

Implementation

Future<bool> exists(String docId) async {
  return await _collectionReference
      .doc(docId)
      .get()
      .then((value) => value.exists);
}