isIgnoreCaseContains static method

bool isIgnoreCaseContains(
  1. String longStr,
  2. String shortStr
)

判断longStr是否包含shortStr,忽略大小写

Implementation

static bool isIgnoreCaseContains(String longStr, String shortStr) {
  return longStr.toLowerCase().contains(shortStr.toLowerCase());
}