CropController class

A controller class that manages image cropping operations.

The CropController interacts with a cropper and a delegate to perform cropping based on user-selected crop areas and the provided format.

You can configure the CropController with a custom cropper and delegate.

Constructors

CropController({ImageCropper cropper = const DefaultCropper()})
Creates a CropController with an optional custom cropper.

Properties

cropper ImageCropper
The cropper used for cropping the image.
final
delegate CropControllerDelegate?
The delegate provides the image to be cropped, the crop rectangle, and whether the crop area should be circular.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

crop({required ImageByteFormat format}) Future<Uint8List?>
Crops the image based on the crop area and format provided by the delegate.
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