img property

Img get img

Get the image as a Img.

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 image wrapper instance.

Implementation

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

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

Assigns an Img as the category image.

Parameters

  • img: The Img instance to set as the category icon.

Implementation

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