platform/common/merge_map
2024-12-14 20:56:05 -07:00
..
example refactor: refactoring common utils, routes > routing, db drivers 2024-12-14 20:56:05 -07:00
lib refactor: refactoring common utils, routes > routing, db drivers 2024-12-14 20:56:05 -07:00
test refactor: refactoring common utils, routes > routing, db drivers 2024-12-14 20:56:05 -07:00
analysis_options.yaml refactor: refactoring common utils, routes > routing, db drivers 2024-12-14 20:56:05 -07:00
AUTHORS.md refactor: refactoring common utils, routes > routing, db drivers 2024-12-14 20:56:05 -07:00
CHANGELOG.md refactor: refactoring common utils, routes > routing, db drivers 2024-12-14 20:56:05 -07:00
LICENSE refactor: refactoring common utils, routes > routing, db drivers 2024-12-14 20:56:05 -07:00
pubspec.lock refactor: refactoring common utils, routes > routing, db drivers 2024-12-14 20:56:05 -07:00
pubspec.yaml refactor: refactoring common utils, routes > routing, db drivers 2024-12-14 20:56:05 -07:00
README.md refactor: refactoring common utils, routes > routing, db drivers 2024-12-14 20:56:05 -07: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:platform_merge_map/platform_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}}
}