img property

Img get img

Get the image as a Img.

It is also the icon displayed on maps for this landmark.

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

  • Img: The primary image wrapper for this landmark.

Implementation

Img get img {
  final OperationResult resultString = objectMethod(
    pointerId,
    'Landmark',
    'getImg',
  );

  return Img.init(resultString['result']);
}
set img (Img value)

Sets the landmark's primary image from an Img instance.

It is also the icon displayed on maps for this landmark.

Parameters

  • value: The Img instance to use as the primary image.

Implementation

set img(Img value) {
  objectMethod(pointerId, 'Landmark', 'setImg', args: value.pointerId);
}