maximumSize property
override
Maximum size of the Map. If length exceeds this value at any time, n entries accessed the earliest are removed, where n is length - maximumSize.
Implementation
@override
int get maximumSize => _maximumSize;
override
Maximum size of the Map. If length exceeds this value at any time, n
entries accessed the earliest are removed, where n is length -
maximumSize
.
Implementation
@override
void set maximumSize(int maximumSize) {
if (maximumSize == null) throw new ArgumentError.notNull('maximumSize');
while (length > maximumSize) {
_removeLru();
}
_maximumSize = maximumSize;
}