PathSegment constructor

const PathSegment(
  1. String _segment, {
  2. PathSegment? parent,
})

Creates a new PathSegment with the given segment string.

Optionally, a parent segment can be provided to build a hierarchical path.

Implementation

const PathSegment(this._segment, {this.parent});