allSegments property

List<String> allSegments

Implementation

List<String> get allSegments =>
    [...segments, if (hasChildren) ...children!.last.allSegments];