project property

String get project

Gets the project name from the kref.

Returns the first path segment after kref://.

Implementation

String get project {
  final path = _getPath();
  final segments = path.split('/').where((s) => s.isNotEmpty).toList();
  return segments.isNotEmpty ? segments.first : '';
}