Value? getExistingKey(Value? key) { for (var entry in realMap.entries) { if (isIdentical(entry.key, key)) { return entry.key; } } return key; }