getItemById static method

ContentStoreItem? getItemById(
  1. int id
)

Gets the extras item having the specified ID.

Parameters

Returns

Throws

  • An exception if it fails.

Implementation

static ContentStoreItem? getItemById(final int id) {
  final OperationResult resultString = objectMethod(
    0,
    'ContentStore',
    'getItemById',
    args: id,
  );

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