maximumSize property

  1. @override
int get 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
int get maximumSize => _maximumSize;
  1. @override
set maximumSize (int maximumSize)
override

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;
}