ULruCache<K, V> constructor

ULruCache<K, V>({
  1. required int maxBytes,
  2. required int sizeOf(
    1. V value
    ),
  3. void onEvict(
    1. K key,
    2. V value
    )?,
})

Implementation

ULruCache({required this.maxBytes, required this.sizeOf, this.onEvict});