merge method

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

合并两个 Map

Implementation

Map<K, V> merge(Map<K, V> other) {
  if (isNullOrEmpty()) {
    return other;
  }
  return {...this!, ...other};
}