getItemById static method
- int id
Gets the extras item having the specified ID.
Parameters
- IN id The item id, see ContentStoreItem.id
Returns
- The ContentStoreItem with the given id if it exists, null otherwise.
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);
}