cropSize property
Rect
get
cropSize
Implementation
Rect get cropSize => value.crop.multiply(_bitmapSize);
set
cropSize
(Rect newCropSize)
Implementation
set cropSize(Rect newCropSize) {
if (value.aspectRatio != null) {
value = value.copyWith(
crop: _adjustRatio(
newCropSize.divide(_bitmapSize), value.aspectRatio!));
} else {
value = value.copyWith(crop: newCropSize.divide(_bitmapSize));
}
notifyListeners();
}