RK, RV> method
Provides a view of this map as having
RK keys and
If this map is already a
Map<RK, RV>, it is returned unchanged.
If this set contains only keys of type
RK and values of type
all read operations will work correctly.
If any operation exposes a non-
RK key or non-
the operation will throw instead.
Entries added to the map must be valid for both a
Map<K, V> and a
Methods which accept
Object? as argument,
like containsKey, remove and operator ,
will pass the argument directly to the this map's method
without any checks.
That means that you can do
successfully, even if it looks like it shouldn't have any effect.
Map<RK, RV> cast<RK, RV>() => UnmodifiableMapView<RK, RV>(_map.cast<RK, RV>());