updateItem property

ContentStoreItem? get updateItem

Get corresponding update item.

Function will return a valid item only if an update is in progress for that item.

Returns

  • The update item if an update is in progress for the given element, null otherwise.

Throws

  • An exception if it fails.

Implementation

ContentStoreItem? get updateItem {
  final OperationResult resultString = objectMethod(
    _pointerId,
    'ContentStoreItem',
    'getUpdateItem',
  );

  final int id = resultString['result'];
  if (id == -1) {
    return null;
  }
  return ContentStoreItem.init(id, _mapId);
}