merge_map 1.0.2

Dart native js
Flutter Android iOS web

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

merge_map #

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

Example #

import "package:merge_map/merge_map.dart";

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}}
}
3
likes
100
pub points
95%
popularity

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

Repository (GitHub)
View/report issues

Documentation

API reference

Uploader

thosakwe@gmail.com

License

MIT (LICENSE)

More

Packages that depend on merge_map