maxStorage property
int?
get
maxStorage
The maximum number of stored entries.
Use null for unlimited entries.
Implementation
int? get maxStorage => _maxStoredEntries;
set
maxStorage
(int? value)
Updates the max stored entries, trims the bucket if needed.
Implementation
set maxStorage(int? value) {
_maxStoredEntries = maxStorage;
if (value != null) {
bool modified = _trimBucket();
if (modified) {
notifyListeners();
}
}
}