keepWidthFirst property

bool keepWidthFirst
final

The scale option is used to scale image.

The width and height must be greater than 0.

By default, the aspect ratio is not guaranteed. If you need to maintain the aspect ratio, you can set aspectRatio to true.

About keepRatio and keepWidthFirst document

When the keepRatio is false, the keepWidthFirst will be ignored.

Implementation

final bool keepWidthFirst;