toMap method

Map<K, V> toMap()

Returns a map representation of the cache.

Note: modifying the returned map does not affect the cache.

Implementation

Map<K, V> toMap() => Map.unmodifiable(_cache);