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.
Implementation
static ContentStoreItem? getItemById(final int id) {
final OperationResult resultString = staticMethod(
'ContentStore',
'getItemById',
args: id,
);
final int resultId = resultString['result'];
if (resultId == -1) {
return null;
}
return ContentStoreItem.init(resultId);
}