forceCrop property

bool forceCrop

When set to true, the user is forced to crop the asset to one of the allowed crop ratios in transform.items before being able to use other features of the editor. The transform tool will only be presented if the image does not already fit one of the allowed aspect ratios. It will be presented automatically, if the user changes the orientation of the asset and the result does not match an allowed aspect ratio.

This property has no effect unless transform.allowFreeCrop is set to false or null.

// Defaults to:


final bool forceCrop;