reactiveMap<K, V> function
Creates a reactive map from the given map.
If map is already reactive, it is returned as-is.
Otherwise, a new reactive Map is created from the raw value.
K is the type of the map keys.
V is the type of the map values.
Implementation
Map<K, V> reactiveMap<K, V>(Map<K, V> map) {
if (impl.isReactive(map)) {
return map;
}
return impl.ReactiveMap<K, V>(impl.toRaw(map));
}