clearLocalDocs method

void clearLocalDocs({
  1. bool doNotifyListeners = true,
})

Clears all documents from local state.

Implementation

void clearLocalDocs({bool doNotifyListeners = true}) {
  log.debug('Clearing all local docs');
  docsNotifier.update(
    TModelDocs.empty(
      modelBuilder: (dto) => modelBuilder(this, null, dto),
    ),
    doNotifyListeners: doNotifyListeners,
  );
}