getImage method
- Size? size,
- 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:
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,
);
}