isValid property

bool get isValid

Whether the SDK has valid image data available.

Always check this before calling getRenderableImage or getRenderableImageBytes, as those methods return null when the image is invalid.

Returns

  • true if valid image data exists, false otherwise

Implementation

bool get isValid {
  final OperationResult resultString = objectMethod(
    pointerId,
    'ImgFlutter',
    'isValid',
  );

  return resultString['result'] == 1;
}