CropFeatureConfig constructor

const CropFeatureConfig({
  1. bool enabled = true,
  2. int compressQuality = 90,
  3. List<CropAspectRatioPresetData> aspectRatioPresets = const <CropAspectRatioPresetData>[CropAspectRatioPreset.square, CropAspectRatioPreset.original],
  4. bool lockAspectRatio = false,
  5. CropStyle cropStyle = CropStyle.rectangle,
  6. String androidToolbarTitle = 'Crop',
  7. String iosTitle = 'Crop',
  8. int? maxWidth,
  9. int? maxHeight,
})

Implementation

const CropFeatureConfig({
  this.enabled = true,
  this.compressQuality = 90,
  this.aspectRatioPresets = const <CropAspectRatioPresetData>[
    CropAspectRatioPreset.square,
    CropAspectRatioPreset.original,
  ],
  this.lockAspectRatio = false,
  this.cropStyle = CropStyle.rectangle,
  this.androidToolbarTitle = 'Crop',
  this.iosTitle = 'Crop',
  this.maxWidth,
  this.maxHeight,
});