stripTrailingSlash method

Uri stripTrailingSlash()

Implementation

Uri stripTrailingSlash() => path.endsWith('/')
    ? replace(path: path.substring(0, path.length - 1))
    : this;