OptionsCrop class

OptionsCrop : Configuration options for image cropping functionality.

Constructors

OptionsCrop({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, CropperLabels? labels})
Constructor for OptionsCrop to initialize cropping configurations.

Properties

aspectRatio CropAspectRatio
The aspect ratio to be applied when cropping. Can be CropAspectRatio.free(), CropAspectRatio.square(), etc.
getter/setter pair
cropperTheme CropperTheme
The cropper theme to be used. Can be CropperTheme.light, CropperTheme.dark, CropperTheme.blue, or a custom theme.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
labels CropperLabels?
Custom labels for the cropper interface. Allows customization of text displayed in the cropper UI. If null, default labels will be used.
getter/setter pair
maxImageSize int
The maximum dimension (width or height) to which large images are resized before cropping to improve performance.
getter/setter pair
maxScale double
The maximum zoom scale allowed.
getter/setter pair
outputType OutputType
The output type for the cropped image. Can be OutputType.bytes, OutputType.file, or OutputType.both.
getter/setter pair
overlayType CropOverlayType
The overlay type for the crop area. Can be CropOverlayType.rectangle or CropOverlayType.circle.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
showGrid bool
Whether to show a grid inside the crop box.
getter/setter pair
useDraggableCropper bool
Enables a draggable crop box.
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited