One of them these should be removed:
|
/// Add field(s) to the map |
|
AcanthisMap<V> extend(Map<String, AcanthisType> fields) { |
|
_fields.addAll(fields); |
|
return this; |
|
} |
|
|
|
/// Merge field(s) to the map |
|
/// if a field already exists, it will be overwritten |
|
AcanthisMap<V> merge(Map<String, AcanthisType> fields) { |
|
_fields = {..._fields, ...fields}; |
|
return this; |
|
} |
Map.addAll also overwrites existing keys.
https://api.flutter.dev/flutter/dart-core/Map/addAll.html
Sorry for not filling out the template.
One of them these should be removed:
acanthis/lib/src/types/map.dart
Lines 322 to 333 in f15aa86
Map.addAllalso overwrites existing keys.https://api.flutter.dev/flutter/dart-core/Map/addAll.html
Sorry for not filling out the template.