apply method

void apply(
  1. Map<K, V> map
)

Apply this change record to map.

Implementation

void apply(Map<K, V> map) {
  if (isRemove) {
    map.remove(key);
  } else {
    map[key] = newValue!;
  }
}