MapCache<K, V> constructor

MapCache<K, V>({
  1. Map<K, V>? map,
})

Creates a new MapCache, optionally using map as the backing Map.

Implementation

MapCache({Map<K, V>? map}) : _map = map ?? HashMap<K, V>();