containsIgnoreCase method

bool containsIgnoreCase(
  1. String other
)

Returns true if this string contains other, ignoring letter case.

Implementation

bool containsIgnoreCase(String other) {
  if (this == null) return false;
  return this!.toLowerCase().contains(other.toLowerCase());
}