equalsIgnoreCase static method
Compare two nullable strings ignoring case.
If both are null returns false If one of them is null returns false if both are the same, ignoring case, returns true.
Implementation
static bool equalsIgnoreCase(String? lhs, String? rhs) {
if (lhs == null && rhs == null) return true;
if (lhs == null) return false;
if (rhs == null) return false;
return lhs.toLowerCase() == rhs.toLowerCase();
}