CropHelper class abstract

Crop Helper for images in crop page: process to run when cropping an image.

Implementers

Constructors

CropHelper()

Properties

enableEraser → bool
Should we display the eraser with the crop grid?
no setter
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

getLocalCropRect(CropController controller) → Rect
Returns the crop rect according to local cropping method * factor.
getPageTitle(AppLocalizations appLocalizations) → String
Page title of the crop page.
getProcessIcon() → Widget
Icon of the "process!" button.
getProcessLabel(AppLocalizations appLocalizations) → String
Label of the "process!" button.
isNewImage() → bool
Is that a new image, or an already cropped one?
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
process({required BuildContext context, required CropController controller, required File inputFile, required int inputFullWidth, required int inputFullHeight, required File preCroppedFile, required Directory directory, required int sequenceNumber, required List<Offset> offsets}) → Future<CropParameters>
Processes the crop operation.
toString() → String
A string representation of this object.
inherited

Operators

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

Static Methods

getFullLocalCropRect() → Rect
getOffsets(List<double>? eraserCoordinates) → List<Offset>

Constants

fullImageCropRect → const Rect
Full-size crop, aka no crop.