normalizePath property

String normalizePath

Trims all slashes at the start and end

Implementation

String get normalizePath {
  if (startsWith('/')) {
    return substring('/'.length).normalizePath;
  }
  if (endsWith('/')) {
    return substring(0, length - '/'.length).normalizePath;
  }
  return this;
}