setPreferredRatioFromCrop method

void setPreferredRatioFromCrop()

Set preferredCropAspectRatio to the current cropped area ratio

Implementation

void setPreferredRatioFromCrop() {
  _preferredCropAspectRatio = croppedArea.aspectRatio;
  notifyListeners();
}