LruCache<K, V> constructor

LruCache<K, V>({
  1. required int capacity,
  2. void onEvict(
    1. V value
    )?,
})

Implementation

LruCache({required this.capacity, this.onEvict}) : assert(capacity > 0);