Skip to content

fix: AcanthisMap.merge and AcanthisMap.extend do the exact same thing #5

Description

@dickermoshe

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.

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions