ImageCropperPlatform class abstract
The interface that implementations of image_cropper must implement.
Platform implementations should extend this class rather than implement it as image_cropper
does not consider newly added methods to be breaking changes. Extending this class
(using extends) ensures that the subclass will get the default implementation, while
platform implementations that implements this interface will be broken by newly added
ImageCropperPlatform methods.
- Inheritance
-
- Object
- PlatformInterface
- ImageCropperPlatform
Constructors
- ImageCropperPlatform()
- Constructs a ImageCropperPlatform.
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, 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
retrieveLostDatamethod fromimage_pickerlibrary. UnlikeretrieveLostData, 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
- instance ↔ ImageCropperPlatform
-
The default instance of ImageCropperPlatform to use.
getter/setter pair