removeDocument method
Implementation
void removeDocument(String docId) {
if (data.containsKey(docId)) {
data.remove(docId);
if (!shouldPersist) {
shouldPersist = true;
}
}
}
void removeDocument(String docId) {
if (data.containsKey(docId)) {
data.remove(docId);
if (!shouldPersist) {
shouldPersist = true;
}
}
}