mergeMap<K, V> function
Merges the values of the given maps together.
recursive
is set to true
by default. If set to true
,
then nested maps will also be merged. Otherwise, nested maps
will overwrite others.
acceptNull
is set to false
by default. If set to false
,
then if the value on a map is null
, it will be ignored, and
that null
will not be copied.
Implementation
Map<K, V> mergeMap<K, V>(Iterable<Map<K, V>> maps,
{bool recursive = true, bool acceptNull = false}) {
var result = <K, V>{};
for (var map in maps) {
_copyValues(map, result, recursive, acceptNull);
}
return result;
}