locationPath property
Location path as a string
Implementation
// TODO(JKRhb): Apply proper percent-encoding
String get locationPath => getOptions<LocationPathOption>()
.map((final option) => option.value.replaceAll('/', '%2F'))
.join('/');
Set the location path from a string
Implementation
set locationPath(final String fullPath) {
clearLocationPath();
var trimmedPath = fullPath;
if (fullPath.startsWith('/')) {
trimmedPath = fullPath.substring(1);
}
trimmedPath.split('/').forEach(addLocationPath);
}