deleteLocalDocs method

  1. @protected
void deleteLocalDocs({
  1. required List<String> ids,
  2. bool doNotifyListeners = true,
})

Deletes multiple documents from local state.

Parameters:

  • ids - The IDs of the documents to delete
  • doNotifyListeners - Whether to notify listeners of the changes

Implementation

@protected
void deleteLocalDocs({
  required List<String> ids,
  bool doNotifyListeners = true,
}) {
  log.debug('Deleting ${ids.length} local docs');
  for (final id in ids) {
    deleteLocalDoc(id: id, doNotifyListeners: false);
  }
  if (doNotifyListeners) docsPerIdInformer.rebuild();
}