deleteLocalDoc method
Deletes a document from local state.
Parameters:
id
- The ID of the document to deletedoNotifyListeners
- 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,
);
}