I want to merge two Maps. I can use Map.addAll method, but this method does not support deep merge. I want to use addAll for all Maps and equvivalent method for Lists inside. Recursive solution is not simple task for me and using JS iterop is dirty. Any solution?
I have ported it for the Angular Dart UI project, but it's not yet properly tested (but in used in the Rating component)
https://github.com/akserg/angular.dart.ui/blob/master/lib/helper/extend.dart
will be moved shortly to
https://github.com/akserg/angular.dart.ui/blob/master/lib/utils/extend.dart
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With