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
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.