Viewing version 1.0.0. Open the latest package page.
merge_map
1.0.0Combine multiple Maps into one. Equivalent to Object.assign in JS.
Readme
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}}
}
Changelog
Installing
export PUB_HOSTED_URL=https://pub.mirror.p-hatan.ir
flutter pub add 'merge_map:1.0.0'pubspec.yaml
name: merge_map
description: Combine multiple Maps into one. Equivalent to Object.assign in JS.
version: 1.0.0
homepage: https://github.com/thosakwe/merge_map
author: Tobe O <thosakwe@gmail.com>
dev_dependencies:
test: ">= 0.12.13 < 0.13.0"Version history
Dependencies
No direct dependencies declared.