deleteLocalDoc method

  1. @protected
void deleteLocalDoc({
  1. required String id,
  2. bool doNotifyListeners = true,
})

Deletes a document from local state.

Parameters:

  • id - The ID of the document to delete
  • doNotifyListeners - Whether to notify listeners of the change

Implementation

@protected
void deleteLocalDoc({
  required String id,
  bool doNotifyListeners = true,
}) {
  log.debug('Deleting local doc with id: $id');
  docsPerIdInformer.updateCurrent(
    (value) => value..remove(id),
    doNotifyListeners: doNotifyListeners,
  );
}