parent method
Returns the path of the parent node.
Implementation
T? parent() {
if (segments.isEmpty) return null;
return _construct(segments.sublist(0, segments.length - 1));
}
Returns the path of the parent node.
T? parent() {
if (segments.isEmpty) return null;
return _construct(segments.sublist(0, segments.length - 1));
}