CropController class

CropController is a controller for DynamicImageCrop.

Constructors

CropController()

Properties

cropTypeNotifier ValueNotifier<CropType>
no setter
hashCode int
The hash code for this object.
no setterinherited
imageNotifier → ImageChangeNotifier
no setter
imageSizeNotifier ValueNotifier<Size?>
no setter
painterSize Size
The size of the visible painter.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

changeImage(Uint8List image, {ImageByteFormat? imageByteFormat}) → void
Change the image to crop without setState((){}).
changeImageFile(File file, {ImageByteFormat? imageByteFormat}) → void
Change the image File to crop without setState((){}).
changeType(CropType type) → void
Change Crop Type Without setState((){}). Changeable Crop Type: CropType.rectangle, CropType.circle, CropType.triangle, CropType.drawing, CropType.none if change CropType to CropType.none, then remove the crop area.
clearCropArea() → void
Clear Crop Area Without setState((){}).
cropImage() → void
Crop the image as you can see on the screen.
init({required Uint8List image, required ImageByteFormat imageByteFormat, required void callback(Uint8List, int, int), required GlobalKey<FigureShapeViewState> painterKey, required GlobalKey<DrawingViewState> drawingKey}) → void
initialize the controller after DynamicImageCrop build.
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