reset method

void reset()

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 delete then create the store.

Implementation

void reset() {
  _access.tiles.listSync().forEach((e) => e.deleteSync());
  _storeDirectory.stats.invalidateCachedStatistics(statTypes: null);
}