updateVersion property

Version get updateVersion

Get update version (if an update is available for this item).

Function will return a valid version (!= 0) only if the item has a newer version in store.

This function doesn't request an update to be started for the item.

Returns

  • The update version

Throws

  • An exception if it fails.

Implementation

Version get updateVersion {
  final OperationResult resultString = objectMethod(
    _pointerId,
    'ContentStoreItem',
    'getUpdateVersion',
  );

  return Version.fromJson(resultString['result']);
}