getImage method

Uint8List? getImage({
  1. Size? size,
  2. ImageFileFormat? format,
})

Retrieves the category image as raw bytes.

If the category has no associated image this returns null.

Parameters

  • size: Optional preferred image size. When omitted the original size is returned.
  • format: Optional desired ImageFileFormat. If omitted the platform default is used.

Returns

  • Uint8List?: Raw image bytes, or null when no image is available.

See also:

  • img - Retrieves the category image wrapped in an Img helper object.

Implementation

Uint8List? getImage({final Size? size, final ImageFileFormat? format}) {
  return GemKitPlatform.instance.callGetImage(
    pointerId,
    'LandmarkCategory',
    size?.width.toInt() ?? -1,
    size?.height.toInt() ?? -1,
    format?.id ?? -1,
  );
}