platform/packages/merge_map
2021-05-15 14:01:47 +08:00
..
example Publish angel3_merge_map and angel3_mock_request 2021-05-14 16:06:16 +08:00
lib Publish angel3_merge_map and angel3_mock_request 2021-05-14 16:06:16 +08:00
test Publish angel3_merge_map and angel3_mock_request 2021-05-14 16:06:16 +08:00
.gitignore Publish angel3_merge_map and angel3_mock_request 2021-05-14 16:06:16 +08:00
AUTHORS.md Publish angel3_merge_map and angel3_mock_request 2021-05-14 16:06:16 +08:00
CHANGELOG.md Added AUTHORS.md 2021-05-02 12:12:43 +08:00
LICENSE Publish angel3_merge_map and angel3_mock_request 2021-05-14 16:06:16 +08:00
pubspec.yaml Publish angel3_merge_map and angel3_mock_request 2021-05-14 16:06:16 +08:00
README.md Publish route 2021-05-15 14:01:47 +08:00

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}}
}