mergeIfAbsent method

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

Implementation

void mergeIfAbsent(Map<K, V>? other) {
  if (other == null) {
    return;
  }
  other.forEach(
    (key, value) {
      putIfAbsent(key, () => value);
    },
  );
}