galileo_merge_map 4.0.0 copy "galileo_merge_map: ^4.0.0" to clipboard
galileo_merge_map: ^4.0.0 copied to clipboard

Combine multiple Maps into one. Equivalent to Object.assign in JS.

example/main.dart

import 'package:galileo_merge_map/galileo_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]);
  print(merged);

  // {hello: world, foo: {bar: baz, john: doe, this: overrides previous maps}}
}
1
likes
150
pub points
19%
popularity

Publisher

verified publishergalileodart.com

Combine multiple Maps into one. Equivalent to Object.assign in JS.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

More

Packages that depend on galileo_merge_map