updateCropRect method
void
updateCropRect({})
Updates the crop rect without resetting the transformation
Implementation
void updateCropRect({
required Size viewportSize,
required Size imageRenderSize,
required Rect cropRect,
bool enforceBounds = true,
}) {
// Only update the crop rect, don't reset transformation
_viewportCropRect = cropRect;
// Optionally re-enforce bounds
if (enforceBounds) {
_enforceStaticCropBounds();
}
}