pub repository
mirror.p-hatan.commerge_map
1.0.2Combine 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
1.0.2
- Add an example, for Pub's sake.
1.0.1
- Add a specific constraint on Dart versions, to prevent Pub from rejecting all packages that depend on
merge_map(the entire Angel framework). - Add generic type support
Installing
export PUB_HOSTED_URL=https://pub.mirror.p-hatan.com
flutter pub add merge_mappubspec.yaml
name: merge_map
description: Combine multiple Maps into one. Equivalent to Object.assign in JS.
version: 1.0.2
homepage: https://github.com/thosakwe/merge_map
author: Tobe O <thosakwe@gmail.com>
environment:
sdk: ">=1.8.0 <3.0.0"
dev_dependencies:
test:
Version history
| Version | Published | Archive | SHA-256 |
|---|---|---|---|
| 1.0.0 | 2016-04-28T22:53:29.595Z | Download | 97f5e04b062e60d67d6cc4f5a59a4dc74f099954a6873753811a59fc2c4bce71 |
| 1.0.1 | 2018-08-11T17:37:17.227378Z | Download | 6bd8b099d83aaf431fbab13d7a03ff88ec33fe99bcc17a6002dde5bb523991b6 |
| 1.0.2 | 2018-12-31T15:49:47.869063Z | Download | 52572636cb63d71a61bdd0a6919e6f769c964116f9af55983130e2061cc0b9f3 |
Dependencies
No direct dependencies declared.