Returns the valid keys.
List<K> get validKeys => _map.entries .where((e) => isValidEntry(e.key, e.value)) .map((e) => e.key) .toList();