mergeMapsDeep<K, V> function

Map<K, V> mergeMapsDeep<K, V>(
  1. List<Map<K, V>> maps
)

Merges all maps deeply.

Implementation

Map<K, V> mergeMapsDeep<K, V>(List<Map<K, V>> maps) {
  var a = <K, V>{};
  for (final b in maps) {
    final temp = letMapOrNull<K, V>(mergeDataDeep(a, b));
    if (temp != null) {
      a = temp;
    }
  }
  return a;
}