OptionsCropWindMacLinux constructor
OptionsCropWindMacLinux({
- CropperTheme cropperTheme = CropperTheme.light,
- CropAspectRatio? aspectRatio,
- CropOverlayType overlayType = CropOverlayType.circle,
- OutputType outputType = OutputType.both,
- bool showGrid = true,
- double maxScale = 3.0,
- bool useDraggableCropper = true,
- int maxImageSize = 1920,
- dynamic onImageDoneListener(
- dynamic
- void onImageStartLoading()?,
- void onImageEndLoading()?,
- dynamic selectedImageRatio,
- bool visibleOtherAspectRatios = true,
- double squareBorderWidth = 2,
- List? customAspectRatios,
- Color squareCircleColor = Colors.orange,
- double squareCircleSize = 30,
- Color defaultTextColor = Colors.black,
- Color selectedTextColor = Colors.orange,
- Color colorForWhiteSpace = Colors.white,
- int encodingQuality = 100,
- String? workerPath,
- bool isConstrain = true,
- bool makeDarkerOutside = true,
- EdgeInsets? imageEdgeInsets = const EdgeInsets.all(10),
- dynamic outputImageFormat,
- 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();