platform-common-utilities/packages/merge_map
thomashii@dukefirehawk.com 1dce9a75c3 Migrated to Dart 3
2023-03-26 09:47:42 +08:00
..
example Updated merge_map 2021-09-12 08:03:13 +08:00
lib Updated merge_map 2021-09-12 08:03:13 +08:00
test Updated merge_map 2021-09-12 08:03:13 +08:00
analysis_options.yaml Updated merge_map 2021-09-12 08:03:13 +08:00
AUTHORS.md Added merge_map and symbol_table 2021-09-11 22:09:54 +08:00
CHANGELOG.md Migrated to Dart 3 2023-03-26 09:47:42 +08:00
LICENSE Updated merge_map 2021-09-12 08:03:13 +08:00
melos_belatuk_merge_map.iml Upgraded to support sdk 2.17 2022-07-06 22:04:09 +08:00
pubspec.yaml Migrated to Dart 3 2023-03-26 09:47:42 +08:00
README.md Added pretty_logging and json_serializer 2021-09-16 11:23:05 +08:00

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