ImageCropperPlugin class
The web implementation of ImageCropperPlatform
.
This class implements the package:image_picker
functionality for the web.
- Inheritance
-
- Object
- PlatformInterface
- ImageCropperPlugin
Constructors
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?> - Not applicable on web, see Android implementation.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
registerWith(
Registrar registrar) → void -
Registers this class as the default instance of
ImageCropperPlatform
.