allowUpscaling property

bool allowUpscaling
final

Whether the width and height parameters should be clamped to the intrinsic width and height of the image.

In general, it is better for memory usage to avoid scaling the image beyond its intrinsic dimensions when decoding it. If there is a need to scale an image larger, it is better to apply a scale to the canvas, or to use an appropriate Image.fit.

Implementation

final bool allowUpscaling;