isCaseInsensitiveContains method Null safety

bool isCaseInsensitiveContains(
  1. String a,
  2. String b
)

Checks if a contains b (Treating or interpreting upper- and lowercase letters as being the same).

Implementation

static bool isCaseInsensitiveContains(String a, String b) {
  return a.toLowerCase().contains(b.toLowerCase());
}