childPath method
This path with every segment of other appended.
Implementation
Path childPath(Path other) {
if (other.isEmpty) {
return this;
}
if (isEmpty) {
return other;
}
return Path.fromKeys(<ChildKey>[...segments, ...other.segments]);
}