child method

PathSegment child(
  1. String childSegment
)

Creates a child PathSegment with this segment as the parent.

childSegment is the string value of the child segment.

Implementation

PathSegment child(String childSegment) =>
    PathSegment(childSegment, parent: this);