CropConfig constructor

const CropConfig({
  1. double? minAspectRatio,
  2. double? maxAspectRatio,
  3. Size? shortest,
  4. Size? longest,
  5. double? smallest,
  6. double? largest,
  7. Rect initialRect(
    1. Rect baseRect
    )?,
  8. BorderRadius borderRadius(
    1. Rect cropRect
    )?,
  9. double overdragMax = 3.0,
})

Implementation

const CropConfig({
  this.minAspectRatio,
  this.maxAspectRatio,
  this.shortest,
  this.longest,
  this.smallest,
  this.largest,
  this.initialRect,
  this.borderRadius,
  this.overdragMax = 3.0,
}) : assert(
        minAspectRatio == null ||
            maxAspectRatio == null ||
            maxAspectRatio >= minAspectRatio,
        'maxAspectRatio must be >= minAspectRatio',
      );