angel3_merge_map 2.0.1 copy "angel3_merge_map: ^2.0.1" to clipboard
angel3_merge_map: ^2.0.1 copied to clipboard

discontinuedreplaced by: belatuk_merge_map
outdated

Combine multiple Maps into one. Equivalent to Object.assign in JS.

angel3_merge_map #

version Null Safety Gitter

License

Combine multiple Maps into one. Equivalent to Object.assign in JS.

Example #

import "package:angel3_merge_map/angel3_merge_map.dart";

void main() {
    Map map1 = {'hello': 'world'};
    Map map2 = {'foo': {'bar': 'baz', 'this': 'will be overwritten'}};
    Map map3 = {'foo': {'john': 'doe', 'this': 'overrides previous maps'}};
    Map merged = mergeMap(map1, map2, map3);

    // {hello: world, foo: {bar: baz, john: doe, this: overrides previous maps}}
}
0
likes
120
pub points
0%
popularity

Publisher

verified publisherdukefirehawk.com

Combine multiple Maps into one. Equivalent to Object.assign in JS.

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

More

Packages that depend on angel3_merge_map