peekNextRevision method

Future<int> peekNextRevision(
  1. String itemKref
)
inherited

Peeks at the next revision number without creating it.

itemKref is the item's kref URI. Returns the number that would be assigned to the next revision.

Implementation

Future<int> peekNextRevision(String itemKref) async {
  final request = PeekNextRevisionRequest()..itemKref = Kref(uri: itemKref);
  final response = await stub.peekNextRevision(request, options: callOptions);
  return response.number;
}