trimStringLeft method

String trimStringLeft(
  1. String trim
)

移除字符串左侧的指定子字符串

返回移除左侧指定子字符串后的字符串

Implementation

String trimStringLeft(String trim) {
  if (startsWith(trim)) {
    return substring(trim.length);
  }
  return this;
}