hasValueForKeyIgnoreCase method

bool hasValueForKeyIgnoreCase(
  1. String key
)

Implementation

bool hasValueForKeyIgnoreCase(String key) {
  final normalizedKey = key.toLowerCase();

  final matchKey = keys.firstWhereNullable(
    (k) => k.toLowerCase() == normalizedKey,
  );

  if (matchKey == null) return false;

  return this[matchKey] != null;
}