replaceKey method

void replaceKey(
  1. K oldKey,
  2. K newKey
)

Implementation

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