bool contains<T>({T? value, String? key}) { return value != null && map.containsValue(value) || map.containsKey(key ?? T.toString()); }