prefixWithSlash method
If the string is not already prefixed with a slash, prefix it with one.
Implementation
String prefixWithSlash() {
if (startsWith('/')) return this;
return '/$this';
}
If the string is not already prefixed with a slash, prefix it with one.
String prefixWithSlash() {
if (startsWith('/')) return this;
return '/$this';
}