isCaseInsensitiveContains static method

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

Checks if a contains b (Treating or interpreting upper- and lowercase letters as being the same). 检查a是否包含b(将大小写字母视为相同或解释)。

Implementation

static bool isCaseInsensitiveContains(String a, String b) =>
    a.toLowerCase().contains(b.toLowerCase());