getImageById static method
- required int id,
- Size? size,
- ImageFileFormat? format,
Get the image by its ID
Parameters
- IN id The image id
- IN size Size of the image
- IN format ImageFileFormat of the image.
Returns
- The image if it exists, null otherwise
Throws
- An exception if it fails.
Implementation
static Uint8List? getImageById({
required int id,
Size? size,
ImageFileFormat? format,
}) {
return GemKitPlatform.instance.callGetImage(
id,
'SdkSettingsgetImageById',
size?.width.toInt() ?? -1,
size?.height.toInt() ?? -1,
format?.id ?? -1,
imageId: id,
);
}