crop property

Rect get crop

Implementation

Rect get crop => value.crop;
set crop (Rect newCrop)

Implementation

set crop(Rect newCrop) {
  if (value.aspectRatio != null) {
    value = value.copyWith(crop: _adjustRatio(newCrop, value.aspectRatio!));
  } else {
    value = value.copyWith(crop: newCrop);
  }
  notifyListeners();
}