cacheSize property
int
get
cacheSize
The current cache size (default 10): changing the size also empties it.
Implementation
int get cacheSize => _cacheSize;
set
cacheSize
(int size)
Implementation
set cacheSize(int size) {
assert(size >= 1, 'The cache size must support at least one slot.');
if (size >= 1 && size != cacheSize) {
_emptyCache();
_cacheSize = size;
_imageCache = MemoryCache(cacheSize: _cacheSize);
}
}