Cache<K, V> constructor

Cache<K, V>({
  1. required int capacity,
})

Implementation

Cache({required this.capacity}) : assert(capacity > 0);