aspectRatioLockEnabled property

bool aspectRatioLockEnabled
final

If true, while it can still be resized, the crop box will be locked to its current aspect ratio.

If this is set to true, and resetAspectRatioEnabled is set to false, then the aspect ratio button will automatically be hidden from the toolbar.

(default is false)

Implementation

final bool aspectRatioLockEnabled;