ImageCropper class abstract

An abstract class that defines methods for cropping an image.

This class provides methods for cropping an image in either a rectangular or oval shape. Implementing this class allows for custom cropping behavior.

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

cropOval(Image image, Rect cropRect, {required ImageByteFormat format}) Future<Uint8List>
Crops the image in an oval shape.
cropRect(Image image, Rect cropRect, {required ImageByteFormat format}) Future<Uint8List>
Crops the image in a rectangular shape.
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