CropperConfiguration class

Top-level immutable configuration for AdvancedCropper.

Annotations

Constructors

CropperConfiguration({CropAspectRatio aspectRatio = CropAspectRatio.free, CropShape shape = CropShape.rectangle, CropOverlayConfiguration overlay = const CropOverlayConfiguration(), CropGridConfiguration grid = const CropGridConfiguration(), CropGestureConfiguration gestures = const CropGestureConfiguration(), CropExportConfiguration export = const CropExportConfiguration(), CropProcessingConfiguration processing = const CropProcessingConfiguration(), List<CropAspectRatio> aspectRatios = CropAspectRatio.presets})
Creates a CropperConfiguration.
const

Properties

aspectRatio → CropAspectRatio
The active aspect ratio constraint.
final
aspectRatios → List<CropAspectRatio>
Supported aspect ratio presets offered to the user in toolbars.
final
export → CropExportConfiguration
Export format and quality options.
final
gestures → CropGestureConfiguration
Gesture and zoom bounds configuration.
final
grid → CropGridConfiguration
Alignment grid settings.
final
hashCode → int
The hash code for this object.
no setteroverride
overlay → CropOverlayConfiguration
Overlay and frame border styling.
final
processing → CropProcessingConfiguration
Raster memory safeguards.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
shape → CropShape
The geometric crop shape cutout.
final

Methods

copyWith({CropAspectRatio? aspectRatio, CropShape? shape, CropOverlayConfiguration? overlay, CropGridConfiguration? grid, CropGestureConfiguration? gestures, CropExportConfiguration? export, CropProcessingConfiguration? processing, List<CropAspectRatio>? aspectRatios}) → CropperConfiguration
Creates a copy with modified properties.
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.
override

Constants

instagramSquare → const CropperConfiguration
Convenient preset for Instagram 1:1 square posts.
landscape16x9 → const CropperConfiguration
Convenient preset for YouTube / landscape 16:9 thumbnails.
profilePhoto → const CropperConfiguration
Convenient preset for circular profile pictures (1:1 aspect ratio, circle shape).
story → const CropperConfiguration
Convenient preset for Instagram / TikTok / Snapchat 9:16 stories.