withArtifact method
- String name
Creates a new kref with an artifact name.
Implementation
Kref withArtifact(String name) {
final rev = revision;
if (rev == null) {
throw StateError('Cannot add artifact to kref without revision');
}
final path = _getPath();
return Kref('kref://$path?r=$rev&a=$name', validate: false);
}