isScalable property

bool get isScalable

Whether the image uses a vector format and supports lossless scaling.

Vector images can be rendered at any size without quality degradation. Raster images return false and may show pixelation when scaled.

Returns

  • true for vector/scalable images, false for raster images

Implementation

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

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