isContainsStartsWith method

bool isContainsStartsWith(
  1. List<String> params
)

字符串开始是否包含特定字符 params待比较字符

Implementation

bool isContainsStartsWith(List<String> params) {
  if (this.isEmptyString || params.isEmptyList) {
    return false;
  }
  for (var param in params) {
    if (this?.startsWith(param) ?? false) {
      return true;
    }
  }
  return false;
}