img property
Get the image as a Img.
It is also the icon shown on the map for this overlay item.
Prefer Img when you need SDK-managed metadata (uid, recommended size/aspectRatio, scalability) or to request raw image bytes; use getImage when you only need raw image bytes.
Returns
- An Img instance; callers should verify the image validity before use.
Implementation
Img get img {
final OperationResult resultString = objectMethod(
pointerId,
'OverlayItem',
'img',
);
return Img.init(resultString['result']);
}