equalsIgnoreCase method

  1. @override
bool equalsIgnoreCase(
  1. Object? other
)
override

Whether this string equals other ignoring case.

other can be a String or a Stringer (null means empty string).

Implementation

@override
bool equalsIgnoreCase(Object? other) {
  if (other == null) {
    return _str.isEmpty;
  }
  return _str.toLowerCase() == other.toString().toLowerCase();
}