space property

String get space

Gets the space path from the kref.

Returns the path segments between project and item.

Implementation

String get space {
  final path = _getPath();
  final segments = path.split('/').where((s) => s.isNotEmpty).toList();
  if (segments.length <= 2) return '';

  // Last segment is item.kind, first is project
  return segments.sublist(1, segments.length - 1).join('/');
}