containsIgnoreCase method

bool containsIgnoreCase(
  1. String other
)

Checks if the string contains another string, ignoring case.

Implementation

bool containsIgnoreCase(String other) {
  return toLowerCase().contains(other.toLowerCase());
}