locationPath property

String locationPath
inherited

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('/');
void locationPath=(String fullPath)
inherited

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);
}