repoRefOrNull property

RepoRef? get repoRefOrNull

Returns RepoRef if this data is RepoRef, otherwise null.

Implementation

RepoRef? get repoRefOrNull => isRepoRef ? repoRef : null;