ImageCropper class

A convenient class wraps all api functions of ImageCropper plugin

Constructors

ImageCropper()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

cropImage({required String sourcePath, int? maxWidth, int? maxHeight, CropAspectRatio? aspectRatio, List<CropAspectRatioPreset> aspectRatioPresets = const [CropAspectRatioPreset.original, CropAspectRatioPreset.square, CropAspectRatioPreset.ratio3x2, CropAspectRatioPreset.ratio4x3, CropAspectRatioPreset.ratio16x9], CropStyle cropStyle = CropStyle.rectangle, ImageCompressFormat compressFormat = ImageCompressFormat.jpg, int compressQuality = 90, List<PlatformUiSettings>? uiSettings}) Future<CroppedFile?>
Launch cropper UI for an image.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
recoverImage() Future<CroppedFile?>
Retrieve cropped image lost due to activity termination (Android only). This method works similarly to retrieveLostData method from image_picker library. Unlike retrieveLostData, does not throw an error on other platforms, but returns null result.
toString() String
A string representation of this object.
inherited

Operators

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

Static Properties

platform → ImageCropperPlatform
no setter