CallingPathSegment constructor

CallingPathSegment({
  1. required PathSegment segment,
  2. required String value,
})

Don't use

Implementation

factory CallingPathSegment(
    {required PathSegment segment, required String value}) {
  if (segment is NamedSegment) {
    return NamedCallingSegment(segment: segment);
  } else {
    return ArgumentCallingSegment(
        value: value, segment: segment as ArgumentSegment);
  }
}