allSegments method
Implementation
List<String> allSegments({bool includeEmpty = false}) => [
if (segments.isEmpty && includeEmpty) '',
...segments,
if (hasChildren)
...children!.last.allSegments(includeEmpty: includeEmpty)
];