LruCache<K, V> constructor
LruCache<K, V> ({
- required int capacity,
- void onEvict(
- V value
Implementation
LruCache({required this.capacity, this.onEvict}) : assert(capacity > 0);