containsIgnoreCase static method

bool containsIgnoreCase(
  1. String string1,
  2. String string2
)

Implementation

static bool containsIgnoreCase(String string1, String string2) {
  return string1.toLowerCase().contains(string2.toLowerCase());
}