Returns RepoView if this data is RepoView, otherwise null.
RepoView? get repoViewOrNull => isRepoView ? repoView : null;