getImage method

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

Obtain the overlay item's image bytes in a specific size/format.

It is also the icon shown on the map for this overlay item.

Parameters

  • size: Optional desired image size.
  • format: Optional image file format.

Returns

  • Image bytes as Uint8List if available, otherwise null.

See also:

  • img - Get a lightweight Img wrapper for the overlay item's image.

Implementation

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