StoreStats class

Provides statistics about a StoreDirectory

Constructors

StoreStats(StoreDirectory _storeDirectory, {bool forceRecalculation = false})
Provides statistics about a StoreDirectory

Properties

cacheHits int
Retrieve the number of tiles that were successfully retrieved from the store during browsing
no setter
cacheHitsAsync Future<int>
Retrieve the number of tiles that were successfully retrieved from the store during browsing
no setter
cacheMisses int
Retrieve the number of tiles that were unsuccessfully retrieved from the store during browsing
no setter
cacheMissesAsync Future<int>
Retrieve the number of tiles that were unsuccessfully retrieved from the store during browsing
no setter
hashCode int
The hash code for this object.
no setterinherited
noCache StoreStats
Force re-calculation for all statistics instead of retrieving from stats cache
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
storeLength int
Retrieve the number of stored tiles in a store
no setter
storeLengthAsync Future<int>
Retrieve the number of stored tiles in a store
no setter
storeSize double
Retrieve the size of the store in kibibytes (KiB)
no setter
storeSizeAsync Future<double>
Retrieve the size of the store in kibibytes (KiB)
no setter

Methods

invalidateCachedStatistics({List<String>? statTypes = const ['length', 'size']}) → void
Remove the cached statistics synchronously
invalidateCachedStatisticsAsync({List<String>? statTypes = const ['length', 'size']}) Future<void>
Remove the cached statistics asynchronously
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
watchChanges({Duration? debounce = const Duration(milliseconds: 200), List<ChangeType> events = const [ChangeType.ADD, ChangeType.MODIFY, ChangeType.REMOVE], List<StoreParts> storeParts = StoreParts.values}) Stream<void>
Watch for changes in the current store

Operators

operator ==(Object other) bool
The equality operator.
inherited