containsIgnoreCase method

bool containsIgnoreCase(
  1. String? other
)

Returns true if string contains another without matching case

Implementation

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