popFront method
The path without its first segment.
Implementation
Path popFront() {
if (segments.length <= 1) {
return empty;
}
return Path.fromKeys(segments.sublist(1));
}
The path without its first segment.
Path popFront() {
if (segments.length <= 1) {
return empty;
}
return Path.fromKeys(segments.sublist(1));
}