merge method

void merge(
  1. Map<K, V>? other
)

将后一个 Map 的内容合并到前一个 Map 中

Implementation

void merge(Map<K, V>? other) {
  if (other == null) {
    return;
  }
  addAll(other);
}