containsIgnoreCase method

bool containsIgnoreCase(
  1. String string
)

Check if a string contains a substring.

Implementation

bool containsIgnoreCase(String string) {
  if (this == null) {
    throw ArgumentError('string: $this');
  }
  if (this!.isEmpty) {
    return false;
  }
  return this!.toLowerCase().contains(string.toLowerCase());
}