getImgById static method
- int id
Get the image by its ID
Returns
- The image with the given ID. The user is responsible to check if the image is valid. Returns null if np image with the given ID exists
Throws
- An exception if it fails.
Implementation
static Img? getImgById(int id) {
final OperationResult resultString = staticMethod(
'SdkSettings',
'getImgById',
args: id,
);
if (resultString['result'] == -1) {
return null;
}
return Img.init(resultString['result']);
}