allSegments method

List<String> allSegments({
  1. bool includeEmpty = false,
})

Implementation

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