childPath method

Path childPath(
  1. Path other
)

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