OptionsCropWindMacLinux constructor

OptionsCropWindMacLinux({
  1. CropperTheme cropperTheme = CropperTheme.light,
  2. CropAspectRatio? aspectRatio,
  3. CropOverlayType overlayType = CropOverlayType.circle,
  4. OutputType outputType = OutputType.both,
  5. bool showGrid = true,
  6. double maxScale = 3.0,
  7. bool useDraggableCropper = true,
  8. int maxImageSize = 1920,
  9. dynamic onImageDoneListener(
    1. dynamic
    )?,
  10. void onImageStartLoading()?,
  11. void onImageEndLoading()?,
  12. dynamic selectedImageRatio,
  13. bool visibleOtherAspectRatios = true,
  14. double squareBorderWidth = 2,
  15. List? customAspectRatios,
  16. Color squareCircleColor = Colors.orange,
  17. double squareCircleSize = 30,
  18. Color defaultTextColor = Colors.black,
  19. Color selectedTextColor = Colors.orange,
  20. Color colorForWhiteSpace = Colors.white,
  21. int encodingQuality = 100,
  22. String? workerPath,
  23. bool isConstrain = true,
  24. bool makeDarkerOutside = true,
  25. EdgeInsets? imageEdgeInsets = const EdgeInsets.all(10),
  26. bool rootNavigator = false,
  27. dynamic outputImageFormat,
  28. Key? key,
})

Constructor for OptionsCropWindMacLinux to initialize cropping configurations.

Implementation

OptionsCropWindMacLinux({
  this.cropperTheme = CropperTheme.light,
  CropAspectRatio? aspectRatio,
  this.overlayType = CropOverlayType.circle,
  this.outputType = OutputType.both,
  this.showGrid = true,
  this.maxScale = 3.0,
  this.useDraggableCropper = true,
  this.maxImageSize = 1920,
  // Legacy parameters for backward compatibility
  this.onImageDoneListener,
  this.onImageStartLoading,
  this.onImageEndLoading,
  this.selectedImageRatio,
  this.visibleOtherAspectRatios = true,
  this.squareBorderWidth = 2,
  this.customAspectRatios,
  this.squareCircleColor = Colors.orange,
  this.squareCircleSize = 30,
  this.defaultTextColor = Colors.black,
  this.selectedTextColor = Colors.orange,
  this.colorForWhiteSpace = Colors.white,
  this.encodingQuality = 100,
  this.workerPath,
  this.isConstrain = true,
  this.makeDarkerOutside = true,
  this.imageEdgeInsets = const EdgeInsets.all(10),
  this.rootNavigator = false,
  this.outputImageFormat,
  this.key,
}) : aspectRatio = aspectRatio ?? CropAspectRatio.square();