unlockView property
Map<K, V>
unlockView
Unlocks the map, returning a safe, unmodifiable (immutable) Map view. The word "view" means the set is backed by the original IMap.
Using this is very fast, since it makes no copies of the IMap entries. However, if you try to use methods that modify the map, like add, it will throw an UnsupportedError. It is also very fast to lock this map back into an IMap.
See also: UnmodifiableMapFromIMap
Implementation
Map<K, V> get unlockView => UnmodifiableMapFromIMap(this);