parentSegments property

List<String> get parentSegments

Returns the parent segments of the collection path. This is the collection path without the last segment.

Implementation

List<String> get parentSegments {
  if (collection == null || collection!.isEmpty) return [];
  return collection!.sublist(0, collection!.length - 1);
}