merge method

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

Merges other into this.

Implementation

Map<T, K> merge(Map<T, K> other) {
  final Map<T, K> res = Map<T, K>.from(this);
  for (final key in other.keys) {
    res[key] = other[key] as K;
  }
  return res;
}