getImageById static method

Uint8List? getImageById({
  1. required int id,
  2. Size? size,
  3. ImageFileFormat? format,
})

Get the image by its ID

Parameters

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,
  );
}