getImage method

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

Retrieves the primary (main) image for this landmark as raw bytes.

This image is typically used as the icon shown on the map. If no image exists the result is null. For higher-level access use img which returns an Img.

Parameters

  • size: Optional desired size for the returned image.
  • format: Optional ImageFileFormat preference.

Returns

  • Uint8List?: Raw image bytes, or null if not available.

See also:

  • img for a higher-level image wrapper.

Implementation

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