uid property

int get uid

Unique identifier for this image instance.

Two images with the same UID contain identical content, allowing UI optimization by avoiding unnecessary redraws when the image hasn't changed. Compare UIDs to determine if an image update is needed.

Returns

  • The unique integer identifier for this image

Implementation

int get uid {
  final OperationResult resultString = objectMethod(
    pointerId,
    'ImgFlutter',
    'getUid',
  );

  return resultString['result'];
}