resolveKref method

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

Resolves a kref to a specific revision.

kref is the item kref (can include revision). tag resolves to the revision with this tag. time resolves to the revision at this timestamp (YYYYMMDDHHMM format).

If neither tag nor time is provided, resolves to the latest revision.

Implementation

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