getImgById static method
Get the image as a Img.
Prefer Img when you need SDK-managed metadata (uid, recommended size/aspectRatio, scalability) or to request raw image bytes; use getImageById when you only need raw image bytes.
Parameters
id: image identifier.
Returns
Also see:
- getImageById - Get the raw image bytes.
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']);
}