resolveLocation method

Future<ResolveLocationResponse> resolveLocation(
  1. String kref, {
  2. String? tag,
  3. String? time,
})
inherited

Resolves a kref to a file location.

Returns the location of the default artifact for the resolved revision.

Implementation

Future<ResolveLocationResponse> resolveLocation(
  String kref, {
  String? tag,
  String? time,
}) async {
  final request = ResolveLocationRequest()..kref = kref;
  if (tag != null && tag.isNotEmpty) {
    request.tag = tag;
  }
  if (time != null && time.isNotEmpty) {
    request.time = time;
  }
  return stub.resolveLocation(request, options: callOptions);
}