getItem method

Future getItem()

Gets the parent item of this artifact.

final item = await artifact.getItem();

Implementation

Future<dynamic> getItem() async {
  final targetKref = itemKref ?? revisionKref.itemKref;
  return client.getItemByKref(targetKref.uri);
}