getArtifact method

Future<ArtifactResponse> getArtifact(
  1. String revisionKref,
  2. String name
)
inherited

Gets a specific artifact by name.

revisionKref is the revision's kref URI. name is the artifact name.

Implementation

Future<ArtifactResponse> getArtifact(
  String revisionKref,
  String name,
) async {
  final request = GetArtifactRequest()
    ..revisionKref = Kref(uri: revisionKref)
    ..name = name;
  return stub.getArtifact(request, options: callOptions);
}