replaceKey method
void
replaceKey(
- K oldKey,
- K newKey
Implementation
void replaceKey(K oldKey, K newKey) {
this[newKey] = this[oldKey]!;
this.remove(oldKey);
}
void replaceKey(K oldKey, K newKey) {
this[newKey] = this[oldKey]!;
this.remove(oldKey);
}