ProductCropHelper class abstract

Crop Helper for product images.

Inheritance
Implementers

Constructors

ProductCropHelper({required ImageField imageField, required OpenFoodFactsLanguage language, required String barcode, required ProductType? productType})

Properties

barcode → String
final
enableEraser → bool
Should we display the eraser with the crop grid?
no setteroverride
hashCode → int
The hash code for this object.
no setterinherited
imageField → ImageField
final
language → OpenFoodFactsLanguage
final
productType → ProductType?
final
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.
inherited
getPageTitle(AppLocalizations appLocalizations) → String
Page title of the crop page.
override
getProcessIcon() → Widget
Icon of the "process!" button.
override
getProcessLabel(AppLocalizations appLocalizations) → String
Label of the "process!" button.
override
isNewImage() → bool
Is that a new image, or an already cropped one?
inherited
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.
inherited
refresh(BuildContext context) → Future<void>
toString() → String
A string representation of this object.
inherited

Operators

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