belatuk_merge_map 4.0.0 icon indicating copy to clipboard operation
belatuk_merge_map: ^4.0.0 copied to clipboard

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

Belatuk Merge Map #

Pub Version (including pre-releases) Null Safety License

Replacement of package:merge_map with breaking changes to support NNBD.

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

Example #

import "package:belatuk_merge_map/belatuk_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
140
pub points
59%
popularity

Publisher

verified publisher icondukefirehawk.com

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

Repository (GitHub)

Documentation

API reference

License

Icon for licenses.BSD-3-Clause (LICENSE)

More

Packages that depend on belatuk_merge_map