CropperSettings class

Configuration for the ImageCropper used by ImagePickerAndCropperRepository.

All fields are optional. Defaults: JPEG format at 85% quality, no maximum dimensions, and no aspect-ratio constraint.

Annotations

Constructors

CropperSettings({int? maxWidth, int? maxHeight, CropAspectRatio? aspectRatio, ImageCompressFormat compressFormat = ImageCompressFormat.jpg, int compressQuality = 85, List<PlatformUiSettings>? uiSettings})
const

Properties

aspectRatio CropAspectRatio?
The fixed crop aspect ratio, or null to allow free-form cropping.
final
compressFormat ImageCompressFormat
The output image compression format. Defaults to ImageCompressFormat.jpg.
final
compressQuality int
The output image quality from 0 to 100. Defaults to 85.
final
hashCode int
The hash code for this object.
no setterinherited
maxHeight int?
The maximum output height in pixels, or null for no limit.
final
maxWidth int?
The maximum output width in pixels, or null for no limit.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
uiSettings List<PlatformUiSettings>?
Platform-specific UI customisation for the cropper dialog.
final

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