resetAsync method
Resets this store synchronously
Deletes all files within the StoreAccess.tiles directory, and invalidates any cached statistics (StoreStats.invalidateCachedStatisticsAsync). Therefore, custom metadata (StoreMetadata
) is not deleted.
For a full reset, manually deleteAsync then createAsync the store.
Implementation
Future<void> resetAsync() async {
await Future.wait(
await (await _access.tiles.listWithExists())
.map((e) => e.delete())
.toList(),
);
await _storeDirectory.stats
.invalidateCachedStatisticsAsync(statTypes: null);
}