getValue method
E
getValue(
- P param
Implementation
E getValue(P param) {
if (cache.containsKey(param)) {
return cache[param]!;
}
final v = callback(param);
if (cache.length >= cacheSize) {
cache.clear();
}
cache[param] = v;
return v;
}