RxProxyValue<T>.mapKey constructor

RxProxyValue<T>.mapKey(
  1. Map map,
  2. String key
)

Implementation

factory RxProxyValue.mapKey(Map map, String key) =>
    RxProxyValue(() => map[key], setter: (val) {
      if (val == null) {
        map.remove(key);
      } else {
        map[key] = val;
      }
    });