clearAll method

Future<void> clearAll()

Implementation

Future<void> clearAll() {
  return _syncLock.run(() async {
    // Cancel any pending sync, since all data stores are being cleared immediately.
    _cancelSync();

    await _clearAll();

    // Reset the data store index and resolver.
    index = {};
    resolver = DataStoreResolver(resolverConfig);
  });
}