IMap<K, V>.unsafe constructor
Unsafe constructor. Use this at your own peril.
This constructor is fast, since it makes no defensive copies of the map. However, you should only use this with a new map you've created yourself, when you are sure no external copies exist. If the original map is modified, it will break the IMap and any other derived maps in unpredictable ways.
Also, if config
is ConfigMap.sort true
, it assumes you will pass it a
sorted mao. It will not sort the map for you. In this case, if map
is not
sorted, it will break the IMap and any other derived sets in unpredictable
ways.
Implementation
factory IMap.unsafe(Map<K, V>? map, {required ConfigMap config}) =>
IMapImpl.unsafe(map, config: config);