removeLastSlash method
Implementation
String removeLastSlash() {
if (characters.last == '/') return substring(0, length - 1);
return this;
}
String removeLastSlash() {
if (characters.last == '/') return substring(0, length - 1);
return this;
}