compareWithoutCase method

bool compareWithoutCase(
  1. String? otherString
)

Compares two strings by ignoring case differences.

Implementation

bool compareWithoutCase(String? otherString) {
  if (otherString == null || this == null) return false;
  // ignore: use_compare_without_case
  return otherString.toLowerCase() == this?.toLowerCase();
}