fullPath property
String
get
fullPath
Implementation
String get fullPath {
var list = <String>[];
var ancestorComponents = <Component>[];
CallingBinding? ancestor;
ancestor = this;
while (ancestor is! ServerBinding && ancestor != null) {
if (ancestor.component is PathSegmentCallingComponentMixin) {
var seg =
((ancestor).component as PathSegmentCallingComponentMixin).segment;
list.add(seg is ArgumentSegment ? "{${seg.name}}" : seg.name);
}
ancestorComponents.add(ancestor.component);
ancestor = ancestor.ancestorCalling;
}
if (list.isEmpty) {
throw Exception("No Service Found from: \nFrom:$ancestorComponents");
}
list.add(owner.httpService.address);
return list.reversed.join("/");
}