CropSettings constructor

CropSettings({
  1. CropAspectRatio? aspectRatio,
  2. CropStyle cropStyle = CropStyle.rectangle,
  3. int compressQuality = 90,
  4. ImageCompressFormat compressFormat = ImageCompressFormat.jpg,
  5. String toolbarTitle = 'Crop Image',
  6. Color toolbarColor = const Color(0xFF2196F3),
  7. Color toolbarWidgetColor = Colors.white,
  8. Color backgroundColor = Colors.black,
  9. Color primaryColor = const Color(0xFF2196F3),
  10. CropAspectRatioPreset initAspectRatio = CropAspectRatioPreset.original,
  11. bool lockAspectRatio = false,
  12. bool hideBottomControls = false,
})

Implementation

CropSettings({
  this.aspectRatio,
  this.cropStyle = CropStyle.rectangle,
  this.compressQuality = 90,
  this.compressFormat = ImageCompressFormat.jpg,
  this.toolbarTitle = 'Crop Image',
  this.toolbarColor = const Color(0xFF2196F3),
  this.toolbarWidgetColor = Colors.white,
  this.backgroundColor = Colors.black,
  this.primaryColor = const Color(0xFF2196F3),
  this.initAspectRatio = CropAspectRatioPreset.original,
  this.lockAspectRatio = false,
  this.hideBottomControls = false,
});