removeDocument method

void removeDocument(
  1. String docId
)

Implementation

void removeDocument(String docId) {
  if (data.containsKey(docId)) {
    data.remove(docId);

    if (!shouldPersist) {
      shouldPersist = true;
    }
  }
}