containsList method

bool containsList(
  1. List<String> keys
)

多关键字模糊匹配

Implementation

bool containsList(List<String> keys) {
  if (keys.isEmpty) return true;
  String regStr = "(?=.*${keys.join(')(?=.*')})".toLowerCase();
  return this.toLowerCase().contains(RegExp(regStr));
}