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