updateCrop method

void updateCrop(
  1. Offset min,
  2. Offset max
)

The min param is the Rect.topLeft position of the crop area The max param is the Rect.bottomRight position of the crop area

Arguments range are Offset.zero to Offset(1.0, 1.0).

Implementation

void updateCrop(Offset min, Offset max) {
  assert(min < max,
      'Minimum crop value ($min) cannot be bigger and maximum crop value ($max)');

  _minCrop = min;
  _maxCrop = max;
  notifyListeners();
}