maximumSize property
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;
Implementation
@override
set maximumSize(int maximumSize) {
// TODO(cbracken): Remove when mixed-mode execution is unsupported.
ArgumentError.checkNotNull(maximumSize, 'maximumSize');
while (length > maximumSize) {
_removeLru();
}
_maximumSize = maximumSize;
}